atril

Experimental JS rendering library

Ideas from ReactJS, Polymer, Angular 2, Aurelia, made simple

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>

ref.vm="X"

Assigns the element's viewmodel as X.

<hello-world ref.vm="viewmodel" style="display: none"></hello-world>
<p>{{viewmodel.name}}</p>
Overview Quickstart Component Attribute Mold Databinding Bootstrapping if for let on class ref demo