Undefined attribute name ng-app
If you are working with AngularJS and include its directive to your HTML page you will see below warning in eclipse:
Undefined attribute name (ng-app).
Solution: This happens because eclipse is not recognizing AngularJS directive tag and give warning. To fix this you have two option:
- Option 1: Ignore validation for undefined attribute name. To do this: Right click project –> Properties –> Validation –> HTML Syntax –> Attributes –> Undefined attribute name –> Ignore as below then click OK:
This will fix the issue and you won’t see warning any more as below:
- Option 2: Include data key word before ng directive which eclipse recognizes as below:
For more information abot AngularJS pelease refer its API here