import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { TableStandardComponent } from './standard/standard.component' ; import { TableFullComponent } from './full/full.component' ; const routes = [ { path : 'standard' , component : TableStandardComponent } , { path : 'full' , component : TableFullComponent } , ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class TablesRoutingModule { }