Angular, doubt how to set checkbox

1

I need a help, I have a checkbox that when selected activates a class in, so far it works, problem when I duplicate tr, it activates the class for both at the same time.

I posted the link in jsfiddle, if anyone can help thanks!

link

    
asked by anonymous 28.09.2016 / 15:39

1 answer

1

So the reason you did not get the expected result is because your checkboxes are in the same scope.

One way to solve it would be to isolate the scope of it. Porting you will probably get an ng-repeat, so you can use the object itself to set the class.

For example: link

    
29.09.2016 / 04:39