FAQ > AngularJS issues
When AngularJS was first created it used attributes starting with ng-
. This was a problem because this is not valid HTML and so can cause errors. But this was fixed by the AngularJS team a long time ago and developers should now use attributes starting with data-ng-
instead.
As the Wikipedia for AngularJS entry explains: 'Since ng-*
attributes are not valid in HTML specifications, data-ng-*
can also be used as a prefix. For example, both ng-app
and data-ng-app
are valid in AngularJS.'
If you are using AngularJS, you may wish to consider using our Validate DOM option so that pages will only be tested after all the initial JavaScript has run.