Angular Formly - Combining nested forms with repeating sections -


so should pretty simple, want combine repeating section within nested form using formly.

there examples doing each of these individually cannot find examples combine these functions.

repeating section http://jsbin.com/murule/32/edit?js,output

nested forms http://jsbin.com/zaqeke/22/edit?js,output

i appreciative of help!

an example awesome if possible.

repeating section complex example of nested form

you can see in repeatsection.html repeater ng-repeat="element in model[options.key]"

<div class="repeatsection" ng-repeat="element in model[options.key]" ng-init="fields = copyfields(to.fields)"> <formly-form fields="fields" model="element" form="form"> </formly-form> <div style="margin-bottom:20px;"> <button type="button" class="btn btn-sm btn-danger" ng-click="model[options.key].splice($index, 1)"> remove </button> </div>


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -