ref.*
References the target in the current viewmodel or scope. Useful for getting hold of things in the view.
ref.="X"
Assigns the element as X
.
<p ref.="p">Reference me!</p>
<p>{{p.outerHTML}}</p>
Reference me!
{{p.outerHTML}}
ref.vm="X"
Assigns the element's viewmodel as X
.
<hello-world ref.vm="viewmodel" style="display: none"></hello-world>
<p>{{viewmodel.name}}</p>
{{viewmodel.name}}