kelp404 / angular-form-builder

Drag and drop to build bootstrap forms in AngularJS.
http://kelp404.github.io/angular-form-builder/
MIT License
600 stars 340 forks source link

Secret Component #43

Open hueitan opened 10 years ago

hueitan commented 10 years ago

I want to create a secret component.

  1. Don't show the component on component side. (which the component already register)
  2. Using that component in the user filling form. (means component data generated from server)

Is this possible ?

18601673727 commented 10 years ago

Yes, you can, here's some sample code for you:

angular.forEach(Db.datasets, function(dataset) {
      formObject.options = dataset.data;
      $scope.$builder.addFormObject('userFillingForm', formObject);
});
hueitan commented 10 years ago

Sorry that I didn't mention register procedure (edit on the post)

Details:

Before using this, i have to use register first I want let the register component be visible

Is this possible using your code?

kelp404 commented 10 years ago

It should custom by yourself.