Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems using the angular-form-builder #97

Open
rodrigoimenes opened this issue Jul 5, 2016 · 2 comments
Open

Problems using the angular-form-builder #97

rodrigoimenes opened this issue Jul 5, 2016 · 2 comments

Comments

@rodrigoimenes
Copy link

Hello,

So I implemented the angular-form-builder like a CRUD, to save and edit forms.

The question is when i go to "builder screen", and save or cancel data and back to this screen, the components are still here, so i made a change on removeFormObject method, to something like this:

    if (opt && opt == 'ERASE_FORM') {
      _this.forms[name] = [];
    } else {
      formObjects = _this.forms[name];
      formObjects.splice(index, 1);
    }
    return _this.reindexFormObject(name);

Removing all components with this code:
$builder.removeFormObject(formName, 0, 'ERASE_FORM');

I know this code is very ugly, but when i come back to screen and create a new form, when i drag a component to builder, it simply disappears.

Do you guys have a sample or something to help me or some workaround?

Thanks for any help or suggestion.

Att,

@rodrigoimenes
Copy link
Author

I also tried running the code commits below, but no success...

a2229be

@rodrigoimenes
Copy link
Author

Same error as this, but his solution doesn't work...

#59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant