mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
docs(tutorial/step-07): fix typo in route pattern
One instance of `/phones/:phoneId` erroneously had a singular version, `/phone/:phoneId`, which does not match what was actually used in the code. Closes #7313
This commit is contained in:
committed by
Peter Bacon Darwin
parent
8b91aa64b7
commit
3f540e3d8a
@@ -247,7 +247,7 @@ Our application routes are defined as follows:
|
||||
controller.
|
||||
|
||||
* `when('/phones/:phoneId')`: The phone details view will be shown when the URL hash fragment
|
||||
matches '/phone/:phoneId', where `:phoneId` is a variable part of the URL. To construct the phone
|
||||
matches '/phones/:phoneId', where `:phoneId` is a variable part of the URL. To construct the phone
|
||||
details view, Angular will use the `phone-detail.html` template and the `PhoneDetailCtrl`
|
||||
controller.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user