File

src/app/core/not-found/not-found.component.ts

Metadata

selector app-not-found
templateUrl not-found.component.html

Constructor

constructor(router: Router)

Methods

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(['/']);
  }
}

results matching ""

    No results matching ""