From 52cb311fddd4d719d4227d9581aaeb4983d7be3d Mon Sep 17 00:00:00 2001 From: illfixit <66363651+illfixit@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:48:56 +0100 Subject: [PATCH] feat: add title for Home page --- .../src/app/pages/home/home/home.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authority-portal-frontend/src/app/pages/home/home/home.component.ts b/authority-portal-frontend/src/app/pages/home/home/home.component.ts index a1abe49c6..83fc254d6 100644 --- a/authority-portal-frontend/src/app/pages/home/home/home.component.ts +++ b/authority-portal-frontend/src/app/pages/home/home/home.component.ts @@ -11,7 +11,7 @@ * sovity GmbH - initial implementation */ import {Component, HostBinding, Inject} from '@angular/core'; -import {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser'; +import {DomSanitizer, SafeResourceUrl, Title} from '@angular/platform-browser'; import {APP_CONFIG, AppConfig} from 'src/app/core/services/config/app-config'; @Component({ @@ -31,7 +31,9 @@ export class HomePageComponent { constructor( @Inject(APP_CONFIG) public appConfig: AppConfig, private sanitizer: DomSanitizer, + private titleService: Title, ) { + this.titleService.setTitle('Home'); if (this.appConfig.iframeUrl) { this.iframeUrl = this.sanitizer.bypassSecurityTrustResourceUrl( this.appConfig.iframeUrl,