bindings:[
{from:".model", to:".null", transform: function(v,d,b){
if (!v){return}
var raw = v.raw();
this.$.name.setContent(v.name);
this.$.name.addClass(v.name);
(plus 20 more setters!)
return;
}}]
vs
bindings:[
{from:".model.name", to:".$.name.content"},
{from:".model.name", to:".$.name.classes"},
{+ 20 more bindings}
]
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments