in all in one
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-server-error',
|
||||
templateUrl: './server-error.component.html',
|
||||
styleUrls: ['./server-error.component.css']
|
||||
})
|
||||
export class ServerErrorComponent implements OnInit {
|
||||
error: any;
|
||||
constructor(private router:Router) {
|
||||
const navigation = this.router.getCurrentNavigation();
|
||||
this.error = navigation?.extras?.state?.error;
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user