diff --git a/apps/parent-form/src/app/app.module.ts b/apps/parent-form/src/app/app.module.ts index c74dc50..4e5309e 100644 --- a/apps/parent-form/src/app/app.module.ts +++ b/apps/parent-form/src/app/app.module.ts @@ -3,12 +3,15 @@ import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { RouterModule } from '@angular/router'; +import { ReactiveFormsModule } from '@angular/forms'; +import { NameComponent } from './name/name.component'; @NgModule({ - declarations: [AppComponent], + declarations: [AppComponent, NameComponent], imports: [ BrowserModule, - RouterModule.forRoot([], { initialNavigation: 'enabled' }) + RouterModule.forRoot([], { initialNavigation: 'enabled' }), + ReactiveFormsModule, ], providers: [], bootstrap: [AppComponent] diff --git a/apps/parent-form/src/app/name/name.component.css b/apps/parent-form/src/app/name/name.component.css new file mode 100644 index 0000000..e69de29 diff --git a/apps/parent-form/src/app/name/name.component.html b/apps/parent-form/src/app/name/name.component.html new file mode 100644 index 0000000..35af8e4 --- /dev/null +++ b/apps/parent-form/src/app/name/name.component.html @@ -0,0 +1,26 @@ +
diff --git a/apps/parent-form/src/app/name/name.component.spec.ts b/apps/parent-form/src/app/name/name.component.spec.ts new file mode 100644 index 0000000..ec53998 --- /dev/null +++ b/apps/parent-form/src/app/name/name.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { NameComponent } from './name.component'; + +describe('NameComponent', () => { + let component: NameComponent; + let fixture: ComponentFixture