Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.