ngProp
We use ngProp
to modify element's properties
Syntax
<el data-ng-prop="expression => propertyName:string, expression => value:boolean|string" />
// Can be applied multiple times on element
<el data-ng-prop-0="..." data-ng-prop-9="..." />
Examples
(new NgTemplate( document.body , `<button data-ng-prop="'disabled', isDisabled"></button>` ))
.sync({ isDisabled: true });
console.log( document.body.innerHTML ); // <button disabled=""></button>