I have a
<select> element populated with the acceptable values via
ng-options and bound to a model with
ng-model. It is possible that the model is set to a value that is not acceptable. (It used to be acceptable but no longer is.) In this case AngularJS renders the
<select> as if it had an empty item selected.
Is there a way to have it render the selected value even if it is not listed in
ng-options? I know I can put a default
<option> inside the
<select>. It's better than displaying an empty item, but it's a static string. I'd like to have the invalid value displayed.