fix: expressionChanged error of spinner removed
MODIFY
src/app/app.component.html
src/app/app.component.html
<app-footer></app-footer>
-<div id="spinner" [hidden]="!this.loadingSpinnerService.isWaiting()">
+<div id="spinner" *ngIf="this.showSpinner">
<mat-spinner strokeWidth="3" diameter="50"></mat-spinner>
</div>

MODIFY
src/app/app.component.ts
src/app/app.component.ts
import { Component, ElementRef, OnInit, ViewChild} from '@angular/core';
-import { ActivationEnd, Router } from '@angular/router';
+import { Router } from '@angular/router';
import { HeroService } from './services/hero/hero.service';
import { IHero, INavigation } from './interfaces/IConfig';
import { NavigationService } from './services/navigation/navigation.service';
@@ -13,17 +13,21 @@ import { SpinnerService } from './services/spinner/spinner.service';
export class AppComponent implements OnInit {
@ViewChild('content') content!: ElementRef;
title = 'dev-portal2';
+ showSpinner: boolean;
constructor(
private router: Router,
private heroService: HeroService,
private navigationService: NavigationService,
public loadingSpinnerService: SpinnerService
- ) {}
+ ) {
+ this.showSpinner = false;
+ }
ngOnInit() {
this.initHeroEmitter();
this.initNavigationEmitter();
+ this.showSpinner = this.loadingSpinnerService.isWaiting();
}
private initHeroEmitter() {

fix: expressionChanged error of spinner removed