QUESTION: WebStorm -- Code Inspect (Why is ng-model considered unknown in "select" element?) Follow
Why does Code Inspect flag the Angular directive ng-model as not permissible in an HTML select element but allows the directive in other elements such as input?
In particular, Code Inspect says the ng-model directive is an "Unknown HTML tag attribute" when used in a select element. (see #1, #2, #3 below)
But the ng-model directive is accepted in the input element (#4 below).
QUESTIONS:
- Why is the ng-model attribute considered unknown (by Code Inspect) in the select element?
- Why is the ng-model attribute accepted (by Code Inspect) in the input element?
Please sign in to leave a comment.
Hi there,
Sounds like the case: https://youtrack.jetbrains.com/issue/WEB-11206#comment=27-1026850