How do I set the value property in AngularJS' ng-options?

后端 未结 27 1176
感动是毒
感动是毒 2020-11-22 08:17

Here is what seems to be bothering a lot of people (including me).

When using the ng-options directive in AngularJS to fill in the options for a &

27条回答
  •  醉梦人生
    2020-11-22 08:47

    Please use track by property which differentiate values and labels in select box.

    Please try

    
    

    which will assign labels with text and value with value(from the array)

提交回复
热议问题