Browse Source

change detection error fix

500ms delay set
pull/7001/head
muhammedaltug 6 years ago
parent
commit
b25ddde791
  1. 5
      npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts

5
npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts

@ -77,7 +77,9 @@ export class LoaderBarComponent implements OnDestroy, OnInit {
private subscription: SubscriptionService,
private httpWaitService: HttpWaitService,
private routerWaiterService: RouterWaitService,
) {}
) {
this.httpWaitService.setDelay(500);
}
ngOnInit() {
this.subscribeLoading();
@ -102,6 +104,7 @@ export class LoaderBarComponent implements OnDestroy, OnInit {
this.isLoading = true;
this.progressLevel = 0;
this.cdRef.detectChanges();
this.interval = timer(0, this.intervalPeriod).subscribe(this.reportProgress);
this.timer.unsubscribe();
}

Loading…
Cancel
Save