ng-options with simple array init

后端 未结 5 1766
暖寄归人
暖寄归人 2020-11-30 19:10

I\'m a little bit confused with Angular and ng-options.

I have a simple array and I want to init a select with it. But, I want that options value = labe

5条回答
  •  佛祖请我去吃肉
    2020-11-30 19:24

    You can use ng-repeat with option like this:

    When you submit your form you can get value of input hidden.


    DEMO

    ng-selected ng-repeat

提交回复
热议问题