accessibility page heading

This commit is contained in:
pionnegru
2019-10-17 13:43:47 +03:00
parent 9fd47d3186
commit b633d85352
3 changed files with 14 additions and 0 deletions
+2
View File
@@ -59,6 +59,7 @@ import { INITIAL_APP_STATE } from './store/initial-state';
})
export class AppComponent implements OnInit, OnDestroy {
onDestroy$: Subject<boolean> = new Subject<boolean>();
pageHeading = '';
constructor(
private route: ActivatedRoute,
@@ -111,6 +112,7 @@ export class AppComponent implements OnInit, OnDestroy {
const snapshot: any = event.snapshot || {};
const data: any = snapshot.data || {};
this.pageHeading = data.title || '';
pageTitle.setTitle(data.title || '');
this.store.dispatch(new SetCurrentUrlAction(router.url));
});