angularJS - add a Static option with ng-options

前端 未结 4 1726
别跟我提以往
别跟我提以往 2020-12-16 23:17

I am using ng-options to print all the options for a form in my angular app. I get the value directly from my database which gives me a list of countries:

&l         


        
4条回答
  •  我在风中等你
    2020-12-16 23:53

    You could always just do this:

    
    

    Here is my fiddle example

    Hope this helps!

提交回复
热议问题