I have an angular 2 model-driven form that has a property of type "FormArray". When I add or remove items to this form array the form itself does not seem to register any changes and the form is not made "dirty".
Here is a plunker showing the problem: https://plnkr.co/edit/j1S80CmPBF1iHI5ViEia?p=preview
Here is the method that removes an element from the FormArray:
removeAddress(i: number) {
const control = <FormArray>this.myForm.controls['addresses'];
control.removeAt(i);
}
Is there a way other than manually setting this.myForm.dirty = true
for the form to detect that changes have been made to this <FormArray>
property?