Created
September 10, 2017 15:19
-
-
Save blogui91/eae1c5e353c410701321428dec453069 to your computer and use it in GitHub Desktop.
Injecting OAuth as helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment