module:to
Set the module that is referenced by the from attribute to a block-level variable.
module:to="NAME"
Sets up a key:to binding to NAME
in the block-level scope. Unlike value this attribute isn't set by a Promise, so it's immediately available at initial template render, rather than being momentarily undefined.
Parameters
- NAME
{String}
:The variable name to assign to in the block-level scope. This can be any string name you want to use, but it must not already be defined in the scope, or it will overwrite that existing value.
<can-import from="app/person" module.default:to="person" /> <can-import from="app/helpers" module.properCase:to="properCase" /> <section> hello {{properCase(person.name)}} </section>