I have this service using HttpClient to get some data :
checkData() { return this.http.get(\'my url\'); }
The on the footer component I
The rxjs way to do this would be the following.
import { interval } from 'rxjs/observable/interval'; import { map } from 'rxjs/operators'; const timeInterval$ = interval(10000); timeInterval$.pipe( map( () => this.http.get(//some url); );