3 changed files with 20 additions and 10 deletions
@ -1,12 +1,17 @@ |
|||||
import { Component } from '@angular/core'; |
|
||||
|
import { Component, OnInit } from '@angular/core'; |
||||
|
import { Title } from '@angular/platform-browser'; |
||||
|
|
||||
@Component({ |
@Component({ |
||||
selector: 'app-root', |
selector: 'app-root', |
||||
templateUrl: './app.component.html', |
templateUrl: './app.component.html', |
||||
styleUrls: ['./app.component.scss'] |
styleUrls: ['./app.component.scss'] |
||||
}) |
}) |
||||
export class AppComponent { |
|
||||
title = 'Dslak | new-media arts'; |
|
||||
|
export class AppComponent implements OnInit { |
||||
|
|
||||
|
public constructor(private titleService: Title) { } |
||||
|
|
||||
public constructor() { } |
|
||||
|
ngOnInit(): void { |
||||
|
this.titleService.setTitle('Dslak | New-media arts') |
||||
|
} |
||||
|
|
||||
} |
} |
||||
|
Loading…
Reference in new issue