Based on @Günter Zöchbauer comments , first i changed
myForm.controls['addresses']
to myForm.get('addresses')
in both html and typescript
and then based on @yuruzi comment
changed myForm.get('addresses').controls
to myForm.get('addresses')['controls']
Its working fine now. Thanks @gunter & yuruzi
More Related Contents:
- Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
- Angular 2 Form “Cannot find control with path”
- Generic email validator
- TypeScript-‘s Angular Framework Error – “There is no directive with exportAs set to ngForm”
- Angular 2 creating reactive forms with nested components
- Angular2 Error: There is no directive with “exportAs” set to “ngForm”
- Dynamically add event listener
- I get “Http failure response for (unknown url): 0 Unknown Error” instead of actual error message in Angular
- Angular error: “Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input'”
- How to write unit testing for Angular / TypeScript for private methods with Jasmine
- Angular and Typescript: Can’t find names – Error: cannot find name
- Min / Max Validator in Angular 2 Final
- Angular 2 Scroll to top on Route Change
- angular2 manually firing click event on particular element
- Angular 2 – How do I navigate to another route using this.router.parent.navigate(‘/about’)?
- Getting “Uncaught (in promise): TypeError: Object(…) is not a function” Error from Ionic-native VideoEditor Plugin
- Typescript/Angular/ES6: can I finally let `hasOwnProperty()` die in for loops?
- How to inject service into class (not component)
- Emit event from parent to child
- vs
- How to cancel/unsubscribe all pending HTTP requests in Angular 4+
- Angular 2 Basic Authentication not working
- Property ‘json’ does not exist on type ‘Object’
- Update parent component property from child component in Angular 2
- How to use variable to define templateUrl in Angular2
- Behaviour subject initial value null?
- How to reset form validation on submission of the form in ANGULAR 2
- Property ‘toPromise’ does not exist on type ‘Observable’
- TypeError: Object prototype may only be an Object or null: undefined Angular 8
- Angular 4 ExpressionChangedAfterItHasBeenCheckedError