vue-tagdog
v0.0.2
Published
A Vue.js directive for tagdog.js
Downloads
7
Maintainers
Readme
vue-tagdog
A Vue.js directive for tagdog.js
requirements
- Vue.js
^0.12.0
- tagdog.js
^0.0.2
installation
npm install vue-tagdog --save
usage
With webpack or browserify:
var Vue = require('vue');
Vue.use(require('vue-tagdog'));
Direct HTML include:
Vue.use(window['vue-tagdog']);
Usage of the v-tagdog
directive:
<p v-tagdog="tags" settings="tagdogSettings">
<label for="tags">Tags</label>
<input type="text" id="tags" placeholder="Separate tags with commas" />
</p>
var vm = new Vue({
// ...
data: {
tags: 'blue,red,green',
tagdogSettings: {
maxTags: 4
}
// ...
});
license
MIT.