I am building a form with complex FormBuilder.
this.myForm = this._fb.group({
name: ['', [Validators.required, Validators.minLength(5)]],
addresses: this._fb.group({
street: ['pp', Validators.required],
state: {
city: ['New York']
},
postcode: ['']
})
});
In a nested form, I have a field with can update city. How can I use formControlName for it.