Created
October 14, 2019 14:14
-
-
Save TheDhejavu/d50e5982d10dddef8b38e224b76e55db to your computer and use it in GitHub Desktop.
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 Toaster from './Toaster.vue'; | |
Toaster.install = (Vue, options = {}) => { | |
Vue.prototype.$toaster = new (Vue.extend(Toaster))({propsData: options}) | |
Vue.toaster = Vue.prototype.$toaster | |
if (process.env.NODE_ENV === 'development') window.$toaster = Vue.prototype.$toaster | |
} | |
export default Toaster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment