QUESTION: WebStorm -- Code Inspect (Why is ng-model considered unknown in "select" element?)

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).


  1. Why is the ng-model attribute considered unknown (by Code Inspect) in the select element?
  2. Why is the ng-model attribute accepted (by Code Inspect) in the input element?

Please sign in to leave a comment.