🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-instant-notification

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-instant-notification

Instant notification based on awesome Vue

1.0.1
latest
npm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

vue-instant-notification

Instant notification based on awesome Vue

Installation

# yarn
yarn add vue-instant-notification

# npm
npm install --save vue-instant-nofication

Example

Markup

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>vue-instant-notification</title>
  </head>
  <body>
    <div id="app">
      <vue-instant-notification ref="Notification"></vue-instant-notification>
      <button @click="test()">Test</button>
    </div>
    <!-- your scripts -->
  </body>
</html>

Script

import Vue from 'vue'
import VueInstantNotification from '../'

new Vue({
  el: '#app',
  components: { VueInstantNotification },
  methods: {
    test: function () {
      this.$refs.Notification.success({
        title: 'Test',
        message: 'This is test'
      });
    }
  }
});

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

FAQs

Package last updated on 30 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts