Skip to content
Advertisement

ng-change increment and decrement value in ng-repeat loop

I have a code like this:

JavaScript

In this code when check the checkbox the count will be incremented. Here how to i check if checkbox is ticked, then only incremented, otherwise if untick, it will decremented. Please anyone help.

Advertisement

Answer

JavaScript

try changing ng-change .

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement