import { CommonModule } from "@angular/common" ; import { NgModule } from "@angular/core/src/metadata/ng_module" ; import { RouterModule , Routes } from "@angular/router" ; import { SharedModule } from "../../shared" ; import { UserListComponent } from "./user-list.component" ; const routes = [ { path : '' , component : UserListComponent } , ] ; @ NgModule ( { imports : [ CommonModule , RouterModule . forChild ( routes ) , SharedModule , ] , declarations : [ UserListComponent , ] , exports : [ UserListComponent , ] } ) export class UserListModule { }