SHARE
TWEET

Untitled

a guest May 6th, 2016 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(){
  2.     var myApp = angular.module( 'myApp', ['ngRoute'] );
  3.  
  4.     myApp.config(
  5.         function RouteProvider ( $routeProvider ) {
  6.             $routeProvider
  7.                 .when(
  8.                     '/',
  9.                     {
  10.                         templateURL: 'templates/default.html'
  11.                     }
  12.                 )
  13.                 .otherwise(
  14.                     {
  15.                         redirectTo: '/'
  16.                     }
  17.                 )
  18.             ;
  19.         }
  20.     )
  21. })();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top