Should I care about W3C validation?

You could use the data- html5 attribute which is standard and as far as I know works the same for Angular.
Something like:

data-ng-app=""
data-ng-init="xxx"

Will work the same in Angular and are validated by W3C.

Look also at this: ng-app vs. data-ng-app, what is the difference?

Aside from that, from my experience working with standards is always better when your product will be delivered to a possible large crowd (so you’r building a website or a public webapp and so on) with different clients, versions etc.
If you’re building a SPA using angular and maybe phonegap to create a mobile app which will be installed on mobile devices as a native app, standard could not be that important, the important thing is that it will work on your target devices.

Leave a Comment