Skip to content

Instantly share code, notes, and snippets.

@isummation
Last active September 14, 2017 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isummation/222cfd494fdac0d60e1d01a8fcf40b9d to your computer and use it in GitHub Desktop.
Save isummation/222cfd494fdac0d60e1d01a8fcf40b9d to your computer and use it in GitHub Desktop.
// dynamic-form.module.ts
import { DynamicFormComponent } from './dynamic-form.component';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { DynamicFormControlComponent } from './dynamic-form-control/dynamic-form-control.component';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
imports: [
CommonModule,
ReactiveFormsModule,
FormsModule
],
exports: [DynamicFormControlComponent, DynamicFormComponent],
declarations: [DynamicFormControlComponent, DynamicFormComponent],
entryComponents: [DynamicFormControlComponent, DynamicFormComponent]
})
export class DynamicFormModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment