Skip to content

Commit

Permalink
Merge pull request #450 from akagomez/patch-1
Browse files Browse the repository at this point in the history
Fix example typo (someProp => childProp)
  • Loading branch information
chasenlehara committed Apr 30, 2018
2 parents 183a79e + c694541 commit 942ed41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/to-child.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
Imports [can-stache.key] in the [can-view-scope scope] to `childProp` in [can-component.prototype.view-model viewModel]. It also updates `childProp` with the value of `key` when `key` changes.

```html
<my-component vm:someProp:from="key"/>
<my-component vm:childProp:from="key"/>
```

> __Note:__ If [can-stache.key] is an object, changes to the objects properties will still be visible to the component. Objects are passed by reference. See [can-stache-bindings#OneWayBindingWithObjects One Way Binding With Objects].
Expand Down

0 comments on commit 942ed41

Please sign in to comment.