htmlvisual-studio-2013angular-ui-bootstrapangular-ui

Avoiding Visual Studio validation errors with Angular UI Bootstrap


Angular UI Bootstrap introduces several new HTML tags, such as accordion and accordion-group. Angular does a good job of teaching the browser new tricks to use these.

But how do I teach Visual Studio to not complain about unknown elements? Perhaps there is a way to tell Visual Studio about the tags or a way to write the HTML that doesn't use the non-standard tags.


Solution

  • All of ui-bootstrap's directives use A as a restrict value alongside of E.

    So you can just do <div accordion-group></div>