ВЧ
Size: a a a
ВЧ
ОС
this.errTable$ = this.reloadErrTable$.pipe(
startWith(1),
map(() => ({ isLoading: true })),
switchMap(() => this.sprService.getErrLogPeriod()),
map((data) => ({ data, isLoading: false })),
catchError((err) => of({ isLoading: false, err }))
);
isLoading
== true - показывать в шаблоне spinner.ВЧ
ВЧ
ОС
ВЧ
ВЧ
ОС
<div
*ngIf="errTable$ | async as
errTableerrTable">
{{
errTableerrTable.
isLoading isLoading }}
М
this.errTable$ = this.reloadErrTable$.pipe(
startWith(1),
map(() => ({ isLoading: true })),
switchMap(() => this.sprService.getErrLogPeriod()),
map((data) => ({ data, isLoading: false })),
catchError((err) => of({ isLoading: false, err }))
);
isLoading
== true - показывать в шаблоне spinner.ОС
М
ОС
М
ОС
М
<spinner *ngIf="isLoading$ | async"></spinner>
ОС
<spinner *ngIf="isLoading$ | async"></spinner>
BB
7
C☭
VV