mercredi 17 juin 2015

Checkboxes are getting unchecked if they are of same ng-model angularjs

i have a scenario.

suppose i do have two pages view 1 and view 2. and i have three values A,B,C by which i can compare the checkboxes on both views.

now on view 1 there is a checkbox with value A,B,C. and on view 2 there are values "A,B,C" , "A,B,C1" , "A,B,C2".

these values are bind with checkobbxes on both views. means on view 1 there is a checkbox with value A,B,C and if we click on button against that checkbox it will show us the multiple values on view 2.

i have put same ng-model for both checkbox lists. so that if i click on view one then the c on view will be check on view 2 also.

but if i uncheck c valued checkbox on view 2 then the checbox of view 1 is also unchecked. and user think that nothing is seleted. i want to show someting on that inner values are checked for that checkbox on view 1.

is there any solution to this? i am using ionic,angularjs

Please help thank you.




Aucun commentaire:

Enregistrer un commentaire