Closed mmikhan closed 7 years ago
Were able to achieve this like the following:
import Settings from 'electron-settings'
Vue.settings = Vue.prototype.$settings = Settings
We can then call the electron-settings
like the following directly from the single components:
this.$settings.set('user.name', 'John Doe')
Instead of importing the
electron-settings
from all the components, can I import it directly from themain.js
file like the following?If so, how would you call it from the single components?