Created
July 10, 2013 10:41
-
-
Save kwokhou/5965302 to your computer and use it in GitHub Desktop.
AngularJS Router
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('my.app.routing', [], function ($routeProvider, $locationProvider) { | |
$routeProvider.when('/path', { | |
templateUrl: '/path/to/foo.html', | |
controller: FooControler | |
}); | |
$locationProvider.html5Mode(true); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment