AngularJS ng-model in select binding to name instead of value
问题 AngularJS binds a scoped variable specified in ng-model (or data-ng-model ) to an actual <select> element. Hence, whenever the select changes value, the scoped variable gets updated. Upon loading, Angular will attempt to select an option whose value (not name), matches the model variable in the controller. However, what we are currently seeing is that Angular appears to be using the option name (i.e. the name which gets displayed in the HTML) to find an option to select when the page gets