Skip to content

Commit

Permalink
Fix example typo (someProp => childProp)
Browse files Browse the repository at this point in the history
  • Loading branch information
akagomez authored Apr 5, 2018
1 parent 183a79e commit c694541
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 c694541

Please sign in to comment.