verizonconnect / ngx-form-generator

Generate Angular ReactiveForms from OpenAPI documents
MIT License
44 stars 13 forks source link

Add support for generating factories #29

Open repolevedavaj opened 2 years ago

repolevedavaj commented 2 years ago

Instead of just having one instance of a FormGroup, I would like to have a factory to create as much instances as required.

martinmcwhorter commented 2 years ago

What are the usecases for this?

I am open to a PR that adds this as command line option.

repolevedavaj commented 2 years ago

What are the usecases for this?

I am open to a PR that adds this as command line option.

We have some forms, in which the user can add elements, therefore we create multiple instances of a form group. Regarding the PR: We are currently working on a custom solution matching our needs, but if we have something generic enough, we gladly share it. :)