I have a service that will make a call to my rest service every 2 minutes. On my service I have the following function
getNotifications(token: string) {
import {Observable} from 'rxjs/Rx'; Observable.interval(2 * 60 * 1000).subscribe(x => { callyourmethod(); });
Update After comment
this.interval = setInterval(() => { this.yourservicecallmethod(); }, 2 * 60 * 1000);