import { CommonModule } from "@angular/common" ; import { FormsModule , ReactiveFormsModule } from "@angular/forms" ; import { NgModule } from "@angular/core/src/metadata/ng_module" ; import { RouterModule , Routes } from "@angular/router" ; import { UserEditComponent } from "./user-edit.component" ; const routes = [ { path : '' , component : UserEditComponent } , ] ; @ NgModule ( { imports : [ CommonModule , RouterModule . forChild ( routes ) , FormsModule , ReactiveFormsModule , ] , declarations : [ UserEditComponent , ] , exports : [ UserEditComponent , ] } ) export class UserEditModule { }