AngularJs - ng-model in a SELECT

后端 未结 6 1110
执念已碎
执念已碎 2020-12-23 15:58

JSfiddle

Problem:

I have a SELECT-element in my page, which is filled in with an ng-repeat. It also has a ng-model

6条回答
  •  别那么骄傲
    2020-12-23 16:53

    You dont need to define option tags, you can do this using the ngOptions directive: https://docs.angularjs.org/api/ng/directive/ngOptions

    
    

提交回复
热议问题