Recognizing AngularJS Syntax in WebMatrix 3

I am using WebMatrix because of nodejs and backbonejs. I recently started learning angular and I want webmatrix to recognize the angular syntax and stop saying that my ng is unknown. My code works fine, but its just annoying. Any solutions?

+4
source share
1 answer

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!

+1
source

Source: https://habr.com/ru/post/1487063/


All Articles