Skip to content
Snippets Groups Projects
Verified Commit 70c67daf authored by Jonas Leder's avatar Jonas Leder
Browse files

set 404 content

parent 086bff6e
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,10 @@ import {HttpClient} from "@angular/common/http";
})
export class HeaderComponent implements OnInit {
constructor(private httpClient: HttpClient) { }
title = null;
constructor(private httpClient: HttpClient) {
}
title: string | undefined;
ngOnInit(): void {
let location = document.documentURI.replace(document.baseURI, '');
......@@ -20,7 +22,7 @@ export class HeaderComponent implements OnInit {
this.title = data.title;
document.title = data.title + ' - Jonas Leder';
} else {
"404 - Page not found";
this.title = "404 - Page not found";
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment