Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kriskbx/vue-tagdog
A Vue.js directive for tagdog.js
https://github.com/kriskbx/vue-tagdog
Last synced: about 1 month ago
JSON representation
A Vue.js directive for tagdog.js
- Host: GitHub
- URL: https://github.com/kriskbx/vue-tagdog
- Owner: kriskbx
- License: mit
- Archived: true
- Created: 2015-09-30T09:58:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-01T08:04:36.000Z (about 9 years ago)
- Last Synced: 2024-03-16T07:50:54.430Z (8 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-tagdog [![Tips](https://img.shields.io/gratipay/kriskbx.svg)](https://www.gittip.com/kriskbx/) [![Npm](https://img.shields.io/npm/dt/vue-tagdog.svg)](https://www.npmjs.com/package/vue-tagdog)
> A Vue.js directive for [tagdog.js](https://github.com/odiumediae/tagdog.js)
## requirements
* Vue.js `^0.12.0`
* tagdog.js `^0.0.2`## installation
```bash
npm install vue-tagdog --save
```## usage
With webpack or browserify:
```javascript
var Vue = require('vue');
Vue.use(require('vue-tagdog'));
```Direct HTML include:
```javascript
Vue.use(window['vue-tagdog']);
```Usage of the `v-tagdog` directive:
```html
Tags
``````javascript
var vm = new Vue({// ...
data: {
tags: 'blue,red,green',
tagdogSettings: {
maxTags: 4
}
// ...
});
```## demo
Here on [JSFiddle](https://jsfiddle.net/kriskbx/7fomkrL7/6/).
## license
MIT.