diff --git a/src/app/app.component.ts b/src/app/app.component.ts index f313169..ba6fe20 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -43,7 +43,7 @@ export class AppComponent implements OnInit, OnDestroy { this.propertiesService.loadEnvironment() .then(properties => { this.properties = properties; - this.router.events.forEach((event) => { + this.router.events.subscribe(event => { if (event instanceof NavigationEnd) { let r = this.route; while (r.firstChild) {