4 ms·
ng attributes are invalid html attributes. Any non-standard attr should be prefaced by 'data-' according to the spec. edit: Also to you point about dom manipu
by joshontheweb 14y ago
ng attributes are invalid html attributes. Any non-standard attr should be prefaced by 'data-' according to the spec.
edit: Also to you point about dom manipulation. The same amount of dom manipulation is happening. You just aren't in control of it.
- OriginalSyn 14y agoBTW Angular supports prefixing your 'ng-' attributes with 'data-' if you want valid HTML.
- joshontheweb 14y agoDidn't know that. Makes it a little better ;)
- defen 14y agoAngular lets you use attributes like: data-ng-*. You can also put directives in css if are that concerned about validating markup - class="data-ng-click: foo"