ERROR TypeError: Cannot read property 'push' of undefined
addAddress() {
const control = <FormArray>this.AddUserstep2Form.controls['addresses'];
const addrCtrl = this.initAddress();
control.push(addrCtrl);
}
initAddress() {
return this.fb.group({
stateCode: [''],
cityId: ['']
});
}