angularjs implement drop-down box to edit the data echo

https://www.cnblogs.com/janice-jia/p/9764938.html

Js selected normal echo, add select = "selected", angularjs need to add is determined ng-selected = "item.isShow == 1"

<option value="1" ng-selected="item.isShow==1">启用</option>
<option value="0" ng-selected="item.isShow==0">不启用</option>

Further ng-option using the reference:

https://www.cnblogs.com/fighxp/p/7527744.html

Guess you like

Origin www.cnblogs.com/Andrew520/p/11303106.html