S
S
sutkin main2016-11-22 15:10:43
JavaScript
sutkin main, 2016-11-22 15:10:43

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

1 answer(s)
S
SirMustache, 2016-11-22
@SirMustache

You can do this: https://plnkr.co/edit/2HuAlzrL2NjF2lxRVhND?p=preview

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question