import { NgModule } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { FormsModule } from '@angular/forms' ; import { Routes , RouterModule } from '@angular/router' ; import { MappingComponent } from './mapping.component' ; import { SharedModule } from '../shared/shared.module' ; const routes = [ { path : '' , pathMatch : 'full' , component : MappingComponent } ] ; @ NgModule ( { imports : [ CommonModule , FormsModule , SharedModule , RouterModule . forChild ( routes ) , ] , declarations : [ MappingComponent , ] } ) export class MappingModule { }