Set initially selected item in Select list in Angular2

后端 未结 7 1155
独厮守ぢ
独厮守ぢ 2020-12-07 23:59

I\'ve managed to get a Select list to bind with my model for the purpose of saving, but I cannot work out how to make Angular2 automatically select the correct option on the

7条回答
  •  粉色の甜心
    2020-12-08 00:41

    Will it work, if you just remove the edited item from the array, and push it at the beginning of the array, so it would be automatically selected?

提交回复
热议问题