import OAuth from 'oauth' export default { install(Vue, options){ //In this way we'll expose our class in all Vue components Vue.prototype.$oauth = new OAuth(); Vue.mixin({ mounted(){ console.log("Bootstrapping") } }) } }