Vue notifications plugin
Usage
Install in your VueJS project:
npm i -s tb-vue-notifications
Import in main.js and install:
Vue
A global notifications-root tag will be added.
Use it in any (one) component - most likely in the root, but does not really matter:
And you are good to go!
Create a notification
In your templates...
<!-- Will create one with green background (bootstrap bg-success) -->Report some success <!-- Will create one with grey background (bootstrap bg-secondary) -->Note some information <!-- Will create one with red background (bootstrap bg-danger) -->Warn the user
...or in your code
methods: { this) }