formly-js / angular-formly-website

The website for angular-formly
http://angular-formly.com
18 stars 26 forks source link

New Example: Add repeatable groups based on default model #50

Open jonathandick opened 9 years ago

jonathandick commented 9 years ago

I would like an example that demonstrates:

Say we have a repeating group such that the resultant data produced by the form now has N more elements than the original model for the form. How do you (at runtime) take a model with multiple default values for a form that only has one place for them and create the additional (repeating) fields in the form?

Thanks,

Jonathan

kentcdodds commented 9 years ago

I'm not sure I follow what your asking about, but does this help? http://angular-formly.com/#/example/advanced/repeating-section

(Sent from my mobile device, please forgive typos or brevity) On Jul 4, 2015 1:15 AM, "jonathandick" notifications@github.com wrote:

I would like an example that demonstrates:

Say we have a repeating group such that the resultant data produced by the form now has N more elements than the original model for the form. How do you (at runtime) take a model with multiple default values for a form that only has one place for them and create the additional (repeating) fields in the form?

Thanks,

Jonathan

— Reply to this email directly or view it on GitHub https://github.com/formly-js/angular-formly-website/issues/50.