Answer the question
In order to leave comments, you need to log in
How to remove the options element if it is selected in the 1st Select?
How in AngularJs, to make it so that if in the first Input`e you select the Windwos option, for example, then the Windwos option in the second Input`e disappears?
And why is always the first element in the options visible as undefined ?
And if you remove ng-model, then the 1st option will not be undefined.
Link to JsFiddle
Answer the question
In order to leave comments, you need to log in
So ? Well, or a custom filter can be done .
And why is always the first element in the options visible as undefined ?
And if you remove ng-model, then the 1st option will not be undefined.
If the viewValue of ngModel does not match any of the options, then the control will automatically add an "unknown" option, which it then removes when the mismatch is resolved.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question