Skip to content

Instantly share code, notes, and snippets.

@blogui91
Created September 10, 2017 15:19
Show Gist options
  • Save blogui91/eae1c5e353c410701321428dec453069 to your computer and use it in GitHub Desktop.
Save blogui91/eae1c5e353c410701321428dec453069 to your computer and use it in GitHub Desktop.
Injecting OAuth as helper
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