The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

$interval

$interval

1:36
`$interval` provides an excellent service for timed operations in your AngularJS apps. It has the advantage over setInterval in "normal" Javascript in that it is aware of Angular's view cycles, as well as being mockable for unit tests. Additionally, it returns a promise and provides a lot of flexibility.
Watch this lesson now
Avatar
egghead.io

$interval provides an excellent service for timed operations in your AngularJS apps. It has the advantage over setInterval in "normal" Javascript in that it is aware of Angular's view cycles, as well as being mockable for unit tests. Additionally, it returns a promise and provides a lot of flexibility.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?