How do I call a function in a set Time interval in Angular 2. I want it to be called/Triggered at specific time intervals(for eg 10 secs). For Eg: ts File
nu
Observable.interval(10000).takeWhile(() => true).subscribe(() => this.function());
infinite loop where every each 10 seconds function() is being called
function()