import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { InvoiceComponent } from './invoice/invoice.component' ; import { PrintLayoutComponent } from './print-layout/print-layout.component' ; const routes = [ { path : 'print' , outlet : 'print' , component : PrintLayoutComponent , children : [ { path : 'invoice/:invoiceIds' , component : InvoiceComponent } ] } ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes ) ] , exports : [ RouterModule ] } ) export class AppRoutingModule { }