diff --git a/src/app/pages/404.component.html b/src/app/pages/404.component.html index 9fd025c..e76245d 100644 --- a/src/app/pages/404.component.html +++ b/src/app/pages/404.component.html @@ -7,13 +7,9 @@

Oops! You're lost.

The page you are looking for was not found.

-
- - - + -
diff --git a/src/app/pages/404.component.ts b/src/app/pages/404.component.ts index 90410ad..0e91023 100644 --- a/src/app/pages/404.component.ts +++ b/src/app/pages/404.component.ts @@ -1,10 +1,17 @@ import { Component } from '@angular/core'; +import { Location } from '@angular/common'; @Component({ templateUrl: '404.component.html' }) export class P404Component { - constructor() { } + constructor( + private location: Location + ) { + } + goBack(): void { + this.location.back(); +} } diff --git a/src/app/pages/500.component.html b/src/app/pages/500.component.html index 86c8ee0..c08396f 100644 --- a/src/app/pages/500.component.html +++ b/src/app/pages/500.component.html @@ -7,13 +7,9 @@

Houston, we have a problem!

The page you are looking for is temporarily unavailable.

-
- - - - + + -
diff --git a/src/app/pages/500.component.ts b/src/app/pages/500.component.ts index b67ac75..fa459e6 100644 --- a/src/app/pages/500.component.ts +++ b/src/app/pages/500.component.ts @@ -1,10 +1,17 @@ import { Component } from '@angular/core'; +import { Location } from '@angular/common'; @Component({ templateUrl: '500.component.html' }) export class P500Component { - constructor() { } + constructor( + private location: Location + ) { + } -} + goBack(): void { + this.location.back(); +} +} \ No newline at end of file