How to make angularJS ng-model work with objects in select elements?

前端 未结 1 1790
南旧
南旧 2021-02-13 01:51

I have a problem with ng-model on a select element when passing an object from option elements. So, imagine we have an array of columns from a table ca

1条回答
  •  佛祖请我去吃肉
    2021-02-13 02:32

    You can use ng-options to bind the selected object to a model:

    Plunker

    Updated answer:

    0 讨论(0)
提交回复
热议问题