How to update ng-model dynamically in ng-repeat?

前端 未结 1 916
刺人心
刺人心 2021-01-14 09:13

I am facing some problem with dynamic ng-model values in my angular page. Here is my sample JSON.

mytabs = [
    {
        name : \"tab1\",
        values :          


        
1条回答
  •  攒了一身酷
    2021-01-14 09:40

    You should modify you code a little bit you should add a checked property in the object and bind checkbox to that model .

    Kindly could use the below idea or code to get what you want more closely

     

    {{tab.name}}

提交回复
热议问题