import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { NotFoundComponent } from './not-found/not-found.component' ; const notFoundRoutes = [ { component : NotFoundComponent , path : '' } ] ; @ NgModule ( { exports : [ RouterModule ] , imports : [ RouterModule . forChild ( notFoundRoutes ) ] } ) export class NotFoundRoutingModule { }