Issue
I have a project where I'm using AngularJS, but one of the requirements is that my app must pass official HTML5 and CSS3 validation.
Why are apps built with AngularJS not passing official W3C HTML5 validation? I really like AngularJS, so what should I do? Do I really have to build it from scratch or is there any reasonable article/blog which address this issue so I can explain it to my professor?
Solution
According to some other Stackoverflow QA you can pre-fix your angularjs attributes with the data-
attribute.
So ng-app
would become data-ng-app
. This would mean that your markup is valid html5 and still work with angularjs.
See these questions for reference.
Can I use another prefix instead of `ng` with angularjs?
Answered By - Tim B James
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.