Skip to content

Commit 418bd57

Browse files
committed
Merge pull request #56 from oddic/master
Update the guide and API for two-way binding with v-with in 0.11.5
2 parents 9deb848 + ad3072a commit 418bd57

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

source/api/directives.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ For detailed examples, see [Displaying a List](/guide/list.html).
186186

187187
Allows a child ViewModel to inherit data from the parents. You can either pass in an Object which will be used as the `data` option, or bind individual parent properties to the child with different keys. This directive must be used in combination with `v-component`.
188188

189-
The data inheritance is one-way: when parent property changes, the child will be notified of the change and update accordingly; however if the child sets the property to something else, it will not affect the parent, and the modified property will be overwritten the next time parent property changes.
190-
191189
Example inheriting an object:
192190

193191
``` js

source/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ var parent = new Vue({
118118

119119
#### Passing Down Individual Properties
120120

121-
`v-with` can also be used with an argument in the form of `v-with="childProp: parentProp"`. This means passing down `parent[parentProp]` to the child as `child[childProp]`. Note this data inheritance is one-way: when `parentProp` changes, `childProp` will be updated accordingly, however not the other way around.
121+
`v-with` can also be used with an argument in the form of `v-with="childProp: parentProp"`. This means passing down `parent[parentProp]` to the child as `child[childProp]`, creating a two-way binding (as of 0.11.5).
122122

123123
**Example:**
124124

0 commit comments

Comments
 (0)