src/app/core/not-found/not-found.component.ts
selector | app-not-found |
templateUrl | not-found.component.html |
constructor(router: Router)
|
goHome |
goHome()
|
Returns:
void
|
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { CommonModule } from '@angular/common';
@Component({
selector: 'app-not-found',
standalone: true,
imports: [CommonModule],
templateUrl: './not-found.component.html',
})
export class NotFoundComponent {
constructor(private router: Router) {}
goHome(): void {
this.router.navigate(['/']);
}
}