Changing website title

This commit is contained in:
ewandor committed 2023-03-18 17:20:08 +01:00
1 parent ae306bb89e
commit e5375edda8
1 file changed
+4 -1
+4 -1
View File
@@ -1,4 +1,5 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import {Title} from "@angular/platform-browser";
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
@@ -8,5 +9,7 @@ import { Component } from '@angular/core';
export class AppComponent { export class AppComponent {
title = 'Cooper, Hillman & Toshi'; title = 'Cooper, Hillman & Toshi';
constructor() {} constructor(private titleService: Title) {
titleService.setTitle(this.title)
}
} }