value:to
Set the value that is returned from the can-import Promise to a reference scope variable.
value:to="*NAME"
Sets up a toParent:to binding to *NAME in the references scope.
Parameters
- NAME
{String}
:The variable name to assign to the references scope. This can be any string name you want to use, but must be preceded by
*
or it will be placed on the template's View Model.<can-import from="app/person" {^value}="*person" /> <section> hello {{*person.name}} </section>