Changing website title
This commit is contained in:
1 parent
ae306bb89e
commit
e5375edda8
1 file changed
+4
-1
@@ -1,4 +1,5 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Title} from "@angular/platform-browser";
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
@@ -8,5 +9,7 @@ import { Component } from '@angular/core';
|
||||
export class AppComponent {
|
||||
title = 'Cooper, Hillman & Toshi';
|
||||
|
||||
constructor() {}
|
||||
constructor(private titleService: Title) {
|
||||
titleService.setTitle(this.title)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user