至于标题,我的选择似乎无法显示所选值,例如,正确选择...
<md-input-container flex>
<label>Anno selezione</label>
<md-select name="annoSelect" ng-model="vm.anno_attuale"
ng-value="vm.progetto.pprs[$index].anno"
ng-selected="item.selected" >
<md-option ng-repeat="item in vm.progetto.pprs" >
{{vm.progetto.pprs[$index].anno}}
</md-option>
</md-select>
</md-input-container>
我尝试了一些在堆栈上找到的解决方案,例如: Angular : ng-select does not show ng-selected value
但他们中的任何一个都没有解决问题......知道吗?