title: Call a function every 5 sec angular
body: <p>I need to get data from my back-end at every 5 secs, I have a http function which returns me the data, but now I need to call another function which invokes the http function on every 5 secs. I'm searching for a solution with Angular.</p>