Answer the question
In order to leave comments, you need to log in
How to make a function called 1 time in angular like regular JS?
when I call this function, it always adds one and gets a growing number, although it was called only once.
count(){
return this.idLocalFiles++;
}
{{count()}} // 0
{{count()}} // 1
{{count()}} // 2
{{count()}} // 3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question