Click to watch Angular Playlist: • Angular
To view the code of this tutorial. Please visit this Github link: https://github.com/lets-build-with-co...
Note : Switch the particular branch of the tutorials of Github
To download my git repo of JSON Server & use it in you local for practice, Please visit this link: https://github.com/lets-build-with-co...
Reactive Form - Nested Form Array
In this tutorials we are going to enhance the previous example and will add the address form array inside the nominees Form Array.
Here the syntax :
addNominess() {
const nominessFormGroup = this.fb.group({
name:[''],
age :[''],
relation:[''],
address : new FormArray([])
})
this.nominess.push(nominessFormGroup);
}