How to call a function at specific time interval in application instead of controller level?

You can use mahluzs suggestion or use observables like i wrote about here: