From 17c6b9348ad0ae418b6f323078b67052e4aefb98 Mon Sep 17 00:00:00 2001 From: Ninjaws Date: Mon, 25 Nov 2024 19:34:23 +0100 Subject: [PATCH] [Updated] Meta tags for SEO --- src/app/app.component.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a1bfd4f..d0f0747 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -4,6 +4,7 @@ import { AboutComponent } from './about/about.component'; import { ContactComponent } from './contact/contact.component'; import { ProjectsComponent } from './projects/projects.component'; import { SkillsComponent } from './skills/skills.component'; +import { Meta } from '@angular/platform-browser'; @Component({ selector: 'app-root', @@ -14,6 +15,23 @@ import { SkillsComponent } from './skills/skills.component'; export class AppComponent implements AfterViewInit { title = 'portfolio'; + constructor(private meta: Meta) { + this.meta.addTags([ + { + name:'description', + content: 'Portfolio of Ian Vink, Full-Stack Developer' + }, + { + name:'keywords', + content: 'portfolio, developer, web development, software development, software engineering, Full-Stack Development, Angular, Java, C++ Docker, projects, skills, resume' + }, + { + name:'author', + content: 'Ian Vink' + } + ]) + } + ngAfterViewInit(): void { this.observeProjects();