Skip to content

v0.4.3

Latest
Compare
Choose a tag to compare
@cristijora cristijora released this 30 Apr 13:49

Patches

  • Simplify plugin initialization SSR support: 2fb163b
  • #24 support class based notification handling Add Vue as peer dependency: 6b4cbde

You can now use notifications everywhere including vuex stores:

import {Notification} from 'vue-notifyjs'

// trigger notification
Notification.notify({type: 'success', message: 'hello from the other side'})

Important Note:
You still need to initialize the plugin globally beforehand:

import Vue from 'vue'
import Notifications from 'vue-notifyjs'
Vue.use(Notifications)

and declare <notifications></notifications> somewhere in your app because otherwise the {Notification} import from above won't work