From 7a333a7d12e0073561fdc4a6391587d394c0a469 Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Mon, 9 Dec 2019 14:42:14 +0000 Subject: [PATCH] [MonitorDashboard]: Fix a bug on app component git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@57844 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {