How to use vue-notification - 1 common examples

To help you get started, we’ve selected a few vue-notification examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MatviiB / notifier / src / views / assets / vue-notes.asset.js View on Github external
window.Vue = require('vue');
window.vueNotification = require('vue-notification').default;

Vue.use(vueNotification);
const note = new Vue({el: '#notes'});

socket.addEventListener('message', function (event) {
    let data = JSON.parse(event.data).data;
    if (data.note) {
        note.$notify({
            type: data.type ? data.type : 'success',
            title: data.title ? data.title : 'Note:',
            text: data.text ? data.text : ''
        });
    }
});

vue-notification

Vue.js Notification Library

MIT
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis

Popular vue-notification functions