import { NgModule } from '@angular/core' ; import { RouterModule } from '@angular/router' ; import { WildcardComponent } from './wildcard/wildcard.component' ; const wildcardRoutes = [ { component : WildcardComponent , path : '' } ] ; @ NgModule ( { exports : [ RouterModule ] , imports : [ RouterModule . forChild ( wildcardRoutes ) ] } ) export class WildcardRoutingModule { }