Angular's wrapper for window.setInterval. The fn function is executed every delay milliseconds.
AngularJS - Updating variable every second
Pregunta
What is the best way to update a variable every second?
What I want is that when the user clicks on a button, it will make variable x be updated (added 1, for example) every second.
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow