| 1 2 3 4 5 6 7 8 9 10 11 12 | 1× 1× 1× 1× 9× 1× | import { share } from 'rxjs/operators/share';
import { interval } from 'rxjs/observable/interval';
import { startWith } from 'rxjs/operators/startWith';
export class IntervalService {
interval10 = interval(10000)
.pipe(
share(), // make all subscriptions synchronous
startWith(null),
);
}
|