Siong-Ui--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
| $routeProvider.when('/', {template: '<br />', controller: noopCtrl}); $routeProvider.when('/en_US/', {template: '<br />', controller: noopCtrl}); $routeProvider.when('/zh_TW/', {template: '<br />', controller: noopCtrl}); | |
| $routeProvider.otherwise({redirectTo: '/'}); | |
Is used for deep-linking URLs to controllers and views (HTML partials). It watches $location.url() and tries to map the path to an existing route definition.
You can define routes through $routeProvider's API.