Answer the question
In order to leave comments, you need to log in
How to reset on click on another element in ng-repeat?
Hello everyone, I can’t figure out how to reset the counter
https://plnkr.co/edit/IIE3uIKExsXud8fqmF26?p=preview
when you click on the plus, there is an increment and when you click on another plus sign, the value of i should be reset to zero and the process +1 will start back from zero and so every time, I will wait for your answer thanks in advance
Answer the question
In order to leave comments, you need to log in
You can do this: https://plnkr.co/edit/2HuAlzrL2NjF2lxRVhND?p=preview
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question