mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-26 04:55:35 +08:00
docs(guide/understanding_controller): fix incorrect property reference
Correct " model property `spice` " to " model property `customSpice` " to match the code sample Closes #4812
This commit is contained in:
committed by
Pete Bacon Darwin
parent
96ad0c7594
commit
5bf81bc111
@@ -200,7 +200,7 @@ previous example.
|
|||||||
|
|
||||||
Notice that the `SpicyCtrl` Controller now defines just one method called `spicy`, which takes one
|
Notice that the `SpicyCtrl` Controller now defines just one method called `spicy`, which takes one
|
||||||
argument called `spice`. The template then refers to this Controller method and passes in a string
|
argument called `spice`. The template then refers to this Controller method and passes in a string
|
||||||
constant `'chili'` in the binding for the first button and a model property `spice` (bound to an
|
constant `'chili'` in the binding for the first button and a model property `customSpice` (bound to an
|
||||||
input box) in the second button.
|
input box) in the second button.
|
||||||
|
|
||||||
## Scope Inheritance Example
|
## Scope Inheritance Example
|
||||||
|
|||||||
Reference in New Issue
Block a user