Home > Blockchain >  Dynamic form Object Angular reactive From
Dynamic form Object Angular reactive From

Time:10-26

I have an Array. I need to send the form data as object along with form submit. check the below Code https://stackblitz.com/edit/angular-r9astq?file=src/app/app.component.ts

CodePudding user response:

you can use angular reactive forms and use form array for the same to implement dynamic form. I am adding the link for angular documentation :

Angular Reactive Forms - https://angular.io/guide/reactive-forms

Form Array - https://angular.io/api/forms/FormArray

CodePudding user response:

I have find out some solution with working solution. Go through the following solution.

https://stackblitz.com/edit/angular-2tmrqr?file=src/app/app.component.html

  • Related