Vue.js dependency injection

212 Views Asked by At

In my vue electron project I want to use nedb-promises as a global dependency. I've seen that vuex or i18n plugin will be passed to the construc of the vue indatnce. Will this be possible also with nedb?How I can inject it as a dependency?

1

There are 1 best solutions below

1
On BEST ANSWER

You can either write your own plugin or just use build-in dependency injection