Vue Notification

By ukmodak | May 18th 2022 09:26:00 AM | viewed 15 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 : 4234

Today :30

Today Visit Country :

  • United States