import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { LogoutComponent } from './logout.component' ; const routes = [ { path : '' , component : LogoutComponent , data : { title : 'Logout' } } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class LogoutRoutingModule { }