How to use properly ng-change on angularjs dropdown element?

前端 未结 1 493
醉酒成梦
醉酒成梦 2021-01-26 23:54

I have this dropdownlist in my template:

    
相关标签:
1条回答
  • 2021-01-27 00:36

    ng-change event can't pass ng-options current item as value.

    You already do have selected value inside your ng-model, so you can pass your model which already has o(current selected value)

    ng-change="list.getItems(list.currentItemsStatus.id)"    
    
    0 讨论(0)
提交回复
热议问题