2
In an IONIC/CORDOVA app using anglarjs I found myself with the following problem:
The angular mounts the select leaving an empty option at the beginning. example: JSFIDDKE
When selecting one of the options from the list, this empty option disappears. What I need to do is make sure that it continues to exist even after it’s clicked. Because assuming that the person wants to leave the select empty after selecting, there is no way.
What should be the way to implement this select? Currently it is written this way:
<select class="select_local" name="local" ng-model="formData.local">
<option ng-repeat="local in locals" value="{{local.id}}">{{local.name[lang]}}</option>
</select>