can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
24 lines (14 loc) • 579 B
Markdown
*REFERENCE
can.view.bindings 4
Export a viewModel into a template's references scope.
`*ref-prop`
A shorthand for exporting an element's viewModel to the reference scope.
{String} ref-prop The name of the property to set in the template's 'references' scope.
## Use
Export a view model to the references scope by adding an attribute with the
hypenated name of the reference scope property:
```
<year-selector *year-selector />
```
can/view/bindings/doc/reference-one-way.html
can.view.bindings.reference