I would like to know what is the best way to keep checking a variable in AngularJS.
I made a simple clicker game where the user keeps gathering gold, so I need to be constantly checking the number of gold so I can perform some functions accordingly. The only thing I know is $interval, but I don't know if that's the best way since I have to write a number of seconds.
Thank you in advance.