4 ms·
FYI, you can prefix all of Angular's HTML additions with data-ng-* attribute. <my-directive data-ng-model="myModel.foo" compact="true"></my-directive>
by evilduck 13y ago
FYI, you can prefix all of Angular's HTML additions with data-ng-* attribute.
<my-directive data-ng-model="myModel.foo" compact="true"></my-directive>
- alanh 13y agoThat’s true for `ng-model` but is it true for parameters passed in to directives?
- deleted 13y ago[deleted]
- marknutter 13y agoWhen you write directives you can define the attributes into which you pass parameters however you want, including making them HTML spec compliant.