easyFormGenerator
easyFormGenerator copied to clipboard
Swap out dependencies?
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?
Hi @jziggas
Thank you.
You may have no problem in using your own librairies.
The only build in librairies are
angular-formlyangular-formly-templates-bootstrapapi-checkangular-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!
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>'
});