import { Component } from '@angular/core' ; import { RoutingService } from '@spartacus/core' ; @ Component ( { selector : 'app-dvnt-page-not-found' , templateUrl : './dvnt-page-not-found.component.html' , styleUrls : [ './dvnt-page-not-found.component.scss' ] , } ) export class DvntPageNotFoundComponent { constructor ( private routingService ) { } public navigateToHomePage ( ) { this . routingService . goByUrl ( '' ) ; } public navigateToPreviousPage ( ) { this . routingService . back ( ) ; } }