AngularJs - ng-model in a SELECT

后端 未结 6 1102
执念已碎
执念已碎 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:42

    You can also put the item with the default value selected out of the ng-repeat like follow :

    and don't forget the value atribute if you leave it blank you will have the same issue.

提交回复
热议问题