Added SEO data

This commit is contained in:
Daniel Rodriguez 2021-09-29 18:15:02 +02:00
parent d37014d5ea
commit 50cb05d191

View file

@ -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'}
]);
}
} }