Last active
March 5, 2019 18:04
-
-
Save camilogiraldo/6127c0943a548aadbce7b40a75cb7108 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { FormGroup } from '@angular/forms'; | |
import { FormData } from './../../shared/interface/form-data'; | |
@Component({ | |
selector: 'app-dynamic-form', | |
templateUrl: './dynamic-form.component.html', | |
styleUrls: ['./dynamic-form.component.scss'] | |
}) | |
export class DynamicFormComponent implements OnInit { | |
@Input()formData: FormData[]; | |
form: FormGroup; | |
constructor() {} | |
ngOnInit() { | |
this.form = new FormGroup({}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment