[Updated] Meta tags for SEO

This commit is contained in:
Ninjaws
2024-11-25 19:34:23 +01:00
parent c05ccd3400
commit 17c6b9348a
+18
View File
@@ -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();