ekangularbase
Version:
Authentication service for usermanagement(oidc client)
21 lines (17 loc) • 555 B
text/typescript
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
({
selector: 'app-not-found',
templateUrl: './not-found.component.html',
styleUrls: ['./not-found.component.css']
})
export class NotFoundComponent implements OnInit {
constructor(public routerNav: Router) {
}
ngOnInit() {
setTimeout(() => {
console.log('page not found redirect to main page', this.routerNav.url);
this.routerNav.navigate(['']);
}, 10000);
}
}