javascript - Angular js ng-check checks/uncheck issue -
i have model shown below:
$scope.customer{ [customerid:c1, kpi:[{select:tru,id:1001},{select:false,id:1002}] ], [customerid:c2, kpi:[{select:tru,id:1001},{select:false,id:1002}] ], } so, when check or uncheck kpi property id 1001 true, checks customer id c2 well. kindly suggest needs do
object definition , value "select" property , "customerid" property wrong "$scope.customer" array , select property boolean property , must assign true or false that."customerid" string property , must in double quotes. improve model , give more information view.
$scope.customer=[ [customerid:"c1", kpi:[{select:tru,id:1001},{select:false,id:1002}] ], [customerid:"c2", kpi:[{select:tru,id:1001},{select:false,id:1002}] ], ]
Comments
Post a Comment