import { Component } from '@angular/core' ; import { Router } from '@angular/router' ; @ Component ( { selector : 'ngx-not-found' , styleUrls : [ './not-found.component.scss' ] , templateUrl : './not-found.component.html' , } ) export class NotFoundComponent { constructor ( private router ) { } goToHome ( ) { this . router . navigate ( [ 'pages/dashboard' ] ) ; } }