easyFormGenerator icon indicating copy to clipboard operation
easyFormGenerator copied to clipboard

Swap out dependencies?

Open jziggas opened this issue 8 years ago • 2 comments

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?

jziggas avatar Jul 28 '17 16:07 jziggas

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!

MacKentoch avatar Jul 28 '17 19:07 MacKentoch

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>'
});

jziggas avatar Jul 28 '17 20:07 jziggas