Skip to content

Commit

Permalink
feat: add title for Home page
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Nov 26, 2024
1 parent 2966aad commit 52cb311
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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,
Expand Down

0 comments on commit 52cb311

Please sign in to comment.