ng-options how to set first select always blank

前端 未结 8 2113
耶瑟儿~
耶瑟儿~ 2020-12-05 12:44

I am using angularjs in a project and in which I am using ng-options for generating .

Initially when the pages reload and no option element is selected the html gene

8条回答
  •  星月不相逢
    2020-12-05 13:24

    You can forgo using the ng-options and use ng-repeat instead and make the first option blank. See example below.

    
    

提交回复
热议问题