import { HomePageComponent } from './home-page.component' ; import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; const routes = [ { path : '' , data : { shouldReuse : true , key : 'home' } , component : HomePageComponent , } , ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] , } ) export class HomePageRoutingModule { }