Undefined attribute name ng-controller
If you see warning Undefined attribute name ng-controller on your html or jsp page while using Angular.js:
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:
Option 2: Add data keyword before directive as below:
For more information abot AngularJS pelease refer its API here
gracias!