Added SEO data
This commit is contained in:
parent
d37014d5ea
commit
50cb05d191
1 changed files with 17 additions and 2 deletions
|
|
@ -1,10 +1,25 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { Title, Meta } 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 {
|
export class AppComponent implements OnInit{
|
||||||
title = 'TFTPaths';
|
title = 'TFTPaths';
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private titleService: Title,
|
||||||
|
private metaService: Meta
|
||||||
|
){}
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
this.titleService.setTitle(this.title);
|
||||||
|
this.metaService.addTags([
|
||||||
|
{name: 'keywords', content: 'Teamfight Tactics'},
|
||||||
|
{name: 'description', content: 'Teamfight Tactics champions sinergies and combinations.'},
|
||||||
|
{name: 'robots', content: 'index, follow'}
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue