aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/tutorial/step_07.ngdoc
diff options
context:
space:
mode:
authorstucash2014-01-09 11:52:43 +0000
committerTobias Bosch2014-01-09 16:48:15 -0800
commitac05276a510285d1c58f5f143259c4e136728fee (patch)
treef3186c05ad8c03bf4e1bafe6011a4df85e712c88 /docs/content/tutorial/step_07.ngdoc
parentcb9c0f200af43bdd42e9c0d208031beb60fc3885 (diff)
downloadangular.js-ac05276a510285d1c58f5f143259c4e136728fee.tar.bz2
fix(docs): Update reference to `$routeProvider.otherwise`
Diffstat (limited to 'docs/content/tutorial/step_07.ngdoc')
-rw-r--r--docs/content/tutorial/step_07.ngdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/tutorial/step_07.ngdoc b/docs/content/tutorial/step_07.ngdoc
index 87c9f8d0..20355c64 100644
--- a/docs/content/tutorial/step_07.ngdoc
+++ b/docs/content/tutorial/step_07.ngdoc
@@ -121,7 +121,7 @@ view, Angular will use the `phone-list.html` template and the `PhoneListCtrl` co
We reused the `PhoneListCtrl` controller that we constructed in previous steps and we added a new,
empty `PhoneDetailCtrl` controller to the `app/js/controllers.js` file for the phone details view.
-`$route.otherwise({redirectTo: '/phones'})` triggers a redirection to `/phones` when the browser
+`$routeProvider.otherwise({redirectTo: '/phones'})` triggers a redirection to `/phones` when the browser
address doesn't match either of our routes.
Note the use of the `:phoneId` parameter in the second route declaration. The `$route` service uses