danhunsaker / angular-dynamic-forms

Build Forms in AngularJS From Nothing But JSON (please see Alternatives in the README)
MIT License
379 stars 140 forks source link

ng-repeat support #54

Open gioppoluca opened 9 years ago

gioppoluca commented 9 years ago

It seems that is not possible to have the directive inside the ng-repeat, like the following code

<accordion-group heading="{{nodetype.type}}" ng-repeat="nodetype in nodetypes">
    <dynamic-form class="col-md-12" template-url="{{nodetype.file}}" ng-model="{{nodetype.data}}" ng-submit="{{nodetype.process}}()">
  </dynamic-form>
</accordion-group>
JigneshRana commented 6 years ago

I have a same problem. not able to access data after dynamic-form

<div ng:repeat="records in datalist track by $index" class="fullwidth">
        {{records}} <!-- this is displaying data -- >    
<dynamic-form class="col-md-12 no-padding" template="custFormTemplate" ng-model="custFormData[$index]" ng-submit="processForm()">
          </dynamic-form>
        </div>
        {{records}} <!-- this is NOT displaying data -- >
</div>
danhunsaker commented 6 years ago

@JigneshRana In your case, I think it's the spare closing </div> causing issues with values displaying after a dynform.

As to the dynform itself... I'm not sure what's going on, there.