diff --git a/src/app/pages/not-found/not-found.component.html b/src/app/pages/not-found/not-found.component.html
index 5ea0511..65401b6 100644
--- a/src/app/pages/not-found/not-found.component.html
+++ b/src/app/pages/not-found/not-found.component.html
@@ -3,6 +3,6 @@
404
Упс, что-то пошло не так!
-
+
diff --git a/src/app/pages/not-found/not-found.component.ts b/src/app/pages/not-found/not-found.component.ts
index 7cb4124..94e3953 100644
--- a/src/app/pages/not-found/not-found.component.ts
+++ b/src/app/pages/not-found/not-found.component.ts
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
@Component({
selector: 'app-not-found',
@@ -7,9 +8,13 @@ import { Component, OnInit } from '@angular/core';
})
export class NotFoundComponent implements OnInit {
- constructor() { }
+ constructor(private router: Router) { }
ngOnInit(): void {
}
+ routeHome() {
+ this.router.navigate(['/']);
+ }
+
}