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

Swap out dependencies? #77

Open
jziggas opened this issue Jul 28, 2017 · 2 comments
Open

Swap out dependencies? #77

jziggas opened this issue Jul 28, 2017 · 2 comments

Comments

@jziggas
Copy link

jziggas commented Jul 28, 2017

Hey this library looks amazing, great job!

I'm curious how difficult/possible it would be to replace the dependencies in this library for ones a project already has included? For example, we already have libraries for toast messages, rich text editor, and select dropdowns, so we wouldn't want to duplicate things by adding textAngular, angular toaster, etc from this library. Any advice?

@MacKentoch
Copy link
Owner

Hi @jziggas

Thank you.

You may have no problem in using your own librairies.

The only build in librairies are

  • angular-formly
  • angular-formly-templates-bootstrap
  • api-check
  • angular-wizard

Why: just to ensure it works since they are bare bone dependencies for easyFormGenerator.

Please have a look in this html example, what I wanted to show is that you can use your own versions of vendors dependencies (these aren't packaged by easyFormGenerator).

Have nice coding!

@jziggas
Copy link
Author

jziggas commented Jul 28, 2017

I don't see anywhere in that example how to tell easyFormGenerator to use different third party libraries, such as ngQuill instead of textAngular. Could you be more specific?

Do you have to do something like this?

formlyConfigProvider.setType({
    name: 'richEditor',
    template: '<ng-quill ng-model="vm.content"></ng-quill>'
});

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

2 participants