3👍
✅
GlobalDataMethods
needs to be something. You’re adding an install
property to GlobalDataMethods
, but you never define GlobalDataMethods
.
const GlobalDataMethods = {}
GlobalDataMethods.install = ...
Vue.use(GlobalDataMethods)
Consider the VueRouter plugin. The router definition is a class
. The install
method is added to that class.
👤Bert
Source:stackexchange.com