by MatthewPhillips · 14y ago · 0 comments
<html ng-app>
can be turned into a valid attribute by making it <html data-ng-app>
I'm really glad to see how quickly the AngularJS team is addressing concerns like these. AngularJS is moving very fast, and there is a lot of room for improvements in documentation. But a quick check with the changelog would have showed that AngularJS supports the use of valid custom attributes for directives almost half a year ago.I also feel somewhat dirty when using custom attributes, and I admit I preferred xmli-sh HTML and namespaces a-la ng:attr.. but is there any practical difference?
[1] http://wekeroad.com/2011/08/18/my-eyes-please-youre-killing-...
We're dealing with applications here, not documents, and even in the latter case, your views regarding ids and classes are extreme.
Angular templates, more than just markup, are the skeleton of your application. The markup they generate is as semantic as you make it.