Changing website title
This commit is contained in:
@@ -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