From 86eaca953ea78bedfc3be73a38f83d7876ea4e09 Mon Sep 17 00:00:00 2001 From: Kataev Denis Date: Thu, 29 Sep 2022 10:15:21 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#12401=20=D0=A1=D1=82=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=86=D0=B0=20404=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/not-found/not-found.component.html | 2 +- src/app/pages/not-found/not-found.component.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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(['/']); + } + }