AngularJs and <select>: Default selected options are removed

前端 未结 6 1371
梦如初夏
梦如初夏 2021-02-13 16:05

I expect the following code to render a drop down list with the third option selected by default. However, when I bind the select with angularjs, the default selection disappear

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 16:37

    You need to do only two things 1)ng-init="days='noday'" 2)ng-selected="true"

     
                            
        
    提交评论

提交回复
热议问题