import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import {DeviceListComponent} from './device-list/device-list.component'; const routes: Routes = [ { path: 'list', component: DeviceListComponent}, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class DeviceRoutingModule { }