Open vko-online opened 9 years ago
Yeah the documentation is pretty basic but between that and the examples you can work it out.
ng-model is to retrieve the data. If you have a form, you probably want to store the user input somewhere. Input will contain an array with some data for each component inside your form. In this case just one object with the id of the component, the label and the value that was selected by the user.
As far as I know the name in fb-form can be anything you want. However, in your case you named your form "form2" so when you add a component to a form with addFormObject you have to add it to "form2" not to element.name (which doesn't even exist in your example).
So simply do $builder.addFormObject('form2', element);
I have this kind of data in mongodb,
Notice the
elements
property, it has some data to render to end-user. But how to that exactly? Here's the piece that retrieves that dataAnd the last part
What is the
ng-model
for? What name should be infb-form
?This repo lacks of documentation, although i find it useful plugin