Technically, ng- * is not a valid HTML attribute for each specification, so we show an error. Fortunately, Angular allows you to define your attribute using the data-ng- * attributes to make them valid:
http://docs.angularjs.org/guide/directive
You should be able to use data-ng- * wherever you use ng- *.
Happy coding!
source share