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

后端 未结 27 858
感动是毒
感动是毒 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 09:04

    This was best suited for all scenarios according to me:

    
    

    where you can use your model to bind the data. You will get the value as the object will contain and the default selection based on your scenario.

提交回复
热议问题