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

前端 未结 1 472
半阙折子戏
半阙折子戏 2021-02-13 02:13

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:56

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

    Plunker

    Updated answer:

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