Vue Notification

By ukmodak | May 18th 2022 09:26:00 AM | viewed 310 times

Run the following command

restaurentPos>npm install --save vue-notification

In app.js add the following line:

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

in any .vue block add the following code at top under template:

<notifications group="foo" />

At method write the following code

this.$notify({
  group: 'foo',
  title: 'Important message',
  text: 'Hello user! This is a notification!'
});
bONEandALL
Visitor

Total : 18980

Today :9

Today Visit Country :

  • Germany
  • Singapore
  • United States
  • Russia