Edik
Plugins - inject Component & hook into API Request
Hello,
I am trying to make an Application modular. Means it will have default Features, but can also be extended.
For this I am looking to modules as "pakets" with multiple plugins which do changes.
E.g. There is a form with TextInputs "Name", and "Surname" and an "Submit"-Button.
A Module is adding a plugin "advancedForm":
/modules/customModule/index.ts:
Plugin does Tasks:
/modules/customModule/plugins/advancedForm.ts:
Thats how far i got.
The Task of the Plugin must do
a) add 1 or more components between the textInputs
2) hook into the submit button and api call, so I can manipulate the call and callback
The documentation stops at the point "you can do many things with plugins". So sadly I cant find anything related to this.
Any help would be appreciated!
1 replies
Plugins - add third party plugin to Nuxt
Hello,
I would like to add fast-json-patch into Nuxt as plugin. I want it to be auto-imported and avaliable globally.
I tried to add it in nuxt.config.ts as module, but it doesnt get accepted, because its not an nuxt module I believe.
In docs I only find how to create own plugins and add vue-plugins.
Any help is appreciated.
9 replies