Godofbrowser / vuejs-dialog

A lightweight, promise based alert, prompt and confirm dialog
MIT License
351 stars 111 forks source link

Being able to pass router to new adhoc Vue instance #81

Open Benal78 opened 3 years ago

Benal78 commented 3 years ago

While using component in vuejs-dialog, the component may rely on router. Unfortunately as the vuejs-dialog is creating a new dedicated Vue root, the existing plugin are not passed...

This solution, allow to pass any plugin to vuejs-dialog new root...

caller code sample

Vue.use(VuejsDialog, { forwardPlugin: { router } } );