diff --git a/apps/global-form/src/app/app.component.spec.ts b/apps/global-form/src/app/app.component.spec.ts index 0693f7a..617b93f 100644 --- a/apps/global-form/src/app/app.component.spec.ts +++ b/apps/global-form/src/app/app.component.spec.ts @@ -3,6 +3,8 @@ import { RouterTestingModule } from '@angular/router/testing'; import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; import { NameComponent } from './name/name.component'; +import { AddressListComponent } from './address-list/address-list.component'; +import { AddressComponent } from './address/address.component'; import { ContactModule } from '@nested-forms/contact'; describe('AppComponent', () => { @@ -13,7 +15,7 @@ describe('AppComponent', () => { ReactiveFormsModule, ContactModule.forRoot() ], - declarations: [AppComponent, NameComponent] + declarations: [AppComponent, NameComponent, AddressComponent, AddressListComponent] }).compileComponents(); })); diff --git a/apps/global-form/src/app/app.module.ts b/apps/global-form/src/app/app.module.ts index 6716cb7..45b56b2 100644 --- a/apps/global-form/src/app/app.module.ts +++ b/apps/global-form/src/app/app.module.ts @@ -6,9 +6,11 @@ import { RouterModule } from '@angular/router'; import { ReactiveFormsModule } from '@angular/forms'; import { NameComponent } from './name/name.component'; import { ContactModule } from '@nested-forms/contact'; +import { AddressListComponent } from './address-list/address-list.component'; +import { AddressComponent } from './address/address.component'; @NgModule({ - declarations: [AppComponent, NameComponent], + declarations: [AppComponent, NameComponent, AddressListComponent, AddressComponent], imports: [ BrowserModule, RouterModule.forRoot([], { initialNavigation: 'enabled' }), diff --git a/apps/global-form/src/app/name/name.component.html b/apps/global-form/src/app/name/name.component.html index 53143da..f688e17 100644 --- a/apps/global-form/src/app/name/name.component.html +++ b/apps/global-form/src/app/name/name.component.html @@ -1 +1,27 @@ -+ \ No newline at end of file diff --git a/apps/global-form/src/app/name/name.component.spec.ts b/apps/global-form/src/app/name/name.component.spec.ts index 1346a7b..6f115d7 100644 --- a/apps/global-form/src/app/name/name.component.spec.ts +++ b/apps/global-form/src/app/name/name.component.spec.ts @@ -1,4 +1,5 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ReactiveFormsModule } from '@angular/forms'; import { NameComponent } from './name.component'; @@ -8,6 +9,7 @@ describe('NameComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ + imports: [ReactiveFormsModule], declarations: [NameComponent] }).compileComponents(); }));name works!
+