Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Repeating section #2

Open
a-laughlin opened this issue Aug 11, 2015 · 0 comments
Open

Repeating section #2

a-laughlin opened this issue Aug 11, 2015 · 0 comments

Comments

@a-laughlin
Copy link
Contributor

Thoughts on repeating. Can be consolidated with formly-js/angular-formly#282

It would require a repeating subform, which isn't in angular-formly-simplified.js yet.

models = {
  dog:[
    {
      name:'',
      color:'',
      puppies:[{},{}]
    }
  ]
}];

fields = AngularFormlySimplified.getFields(
  'dog.name',
  'dog.bark',
  'dog.color',
  {
    model:'dog',
    subModels:{
      puppies:angularformlysimplified.getfields(
        'dog.bark',
        'dog.runaway'
      )
    }
  }
);
<subform model="mdl" fields="subModels.puppies"><subform>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant