I use angular-ui-select2.
<select ui-select2 ng-model="vm.salonStaffModel.type"> <option ng-repeat="occ in vm.categoriesType" value="{{occ.key}}"> {{occ.key}}</option> </select>
I bind data to vm.salonStaffModel.type successfully, when I select value from dropdown list. But when I refresh page, the value is undefined, although vm.salonStaffModel.type has right value, which I have selected before. Thanks!
You can reference https://stackoverflow.com/questions/44984566/angular-ui-select2-bind-data-undefined?noredirect=1#comment76944027_44984566 for more detail