import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { HomeComponent } from './home.component' ; const routes = [ { path : '' , component : HomeComponent , data : { title : 'ZCE - Home' } } , { path : '**' , redirectTo : '/home' , data : { title : 'ZCE' } } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class HomeRoutingModule { }