Skip to content

jaredreich/vue-notie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-notie

A Vue.js plugin for notie.

Installation

npm:

npm install --save vue-notie

Vue:

var Vue = require('vue')
var VueNotie = require('vue-notie')
Vue.use(VueNotie)

SASS:

@import 'path/to/notie.scss'

HTML (Browserify):

<head>
  ...
  <link rel="stylesheet" href="/node_modules/notie/dist/notie.css">
</head>
<body>
  ...
  <!-- Bottom of body -->
  <script src="/path/to/vue.js"</script>
  <script src="/node_modules/vue-notie/src/vue-notie.js'"></script>
</body>

Usage

notie is now available through this.$notie

this.$notie.alert(1, 'It worked!', 3);

Credit

Thanks to alfhen for originally creating this plugin.