Refactored complex custom meta jank to use Angular SSR instead
This commit is contained in:
1 parent
d291409097
commit
febbc63f35
21 files changed
+1680
-657
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
import {SeoService} from '../shared/services/seo.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-not-found',
|
||||
@@ -15,11 +15,15 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
export class NotFoundComponent implements OnInit {
|
||||
isNarrow: boolean = false;
|
||||
constructor(
|
||||
private titleService: Title,
|
||||
private seo: SeoService,
|
||||
) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('404 | Page Not Found')
|
||||
this.seo.update({
|
||||
title: '404 | Page Not Found',
|
||||
desc: 'How the hell did you end up here?',
|
||||
suffix: false
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user