projects/maplander/core/src/lib/interceptors/loader/loader.service.ts
Properties |
|
Methods |
|
constructor()
|
Public getProgress |
getProgress()
|
Returns :
Observable<boolean>
|
Public setProgress | ||||||
setProgress(load: boolean)
|
||||||
Parameters :
Returns :
void
|
Private _observer |
Type : Subject<boolean>
|
import {Injectable} from '@angular/core';
import {Observable, Subject} from 'rxjs';
@Injectable()
export class LoaderService {
private _observer: Subject<boolean>;
constructor() {
this._observer = new Subject<boolean>();
}
public setProgress(load: boolean): void {
this._observer.next(load);
}
public getProgress(): Observable<boolean> {
return this._observer.asObservable();
}
}