Last active
October 27, 2017 19:34
-
-
Save mrtcmn/6806fbc12d4b9c2572fcd480f13e8d5c 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
this._FormGroup = this.fb.group({ | |
formName: '', | |
decs: '', | |
questions: this.fb.array([this.fb.group({ // First level array here. After bracet again using FormGroup function for creating AbstractControl. | |
question: '', | |
questionType: '', | |
answers: this.fb.array([ // Second level array here. After bracet again using FormGroup function for creating AbstractControl. | |
this.fb.group({ value: ''}) | |
]) | |
})]) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment