Can't set selected value of ng-options

后端 未结 4 465
自闭症患者
自闭症患者 2021-02-02 15:28

I am trying to populate a drop-down select options list and set a default selected value using ng-model and ng-options.

I have the following code in my view:

<         


        
4条回答
  •  不知归路
    2021-02-02 16:06

    Use to ng-init directive .Which is execute initialy at a time we can assign value to ng-model .

提交回复
热议问题