https://github.com/imcvampire/vue-tag-list
A simple VueJS filter for list printing
https://github.com/imcvampire/vue-tag-list
Last synced: 8 months ago
JSON representation
A simple VueJS filter for list printing
- Host: GitHub
- URL: https://github.com/imcvampire/vue-tag-list
- Owner: imcvampire
- License: mit
- Created: 2016-08-18T04:05:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T08:29:50.000Z (over 8 years ago)
- Last Synced: 2025-03-02T20:17:05.581Z (9 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vue-refactor - vur-tag-list
- awesome-vuejs - vur-tag-list - A Vue filter that simplifies how to print a list of tag from array. (Awesome Vue.js / Libraries & Plugins)
README
# vue-tag-list
A simple VueJS filter for tag list printing
## Description:
If you have this in View-Model:
```js
let array = ['Vue', 'filter', 'tag']
```
but you want it shows as below in View:
```
#Vue, #filter, #tag
```
Ok. Let use this package.
## Install:
### CommonJS
Available through npm as `vue-tag-list`:
`npm install vue-tag-list --save`
``` js
var VueTagList = require('vue-tag-list')
Vue.use(VueTagList)
```
### Direct include
- You can also directly include it with a `` tag when you have Vue already included globally. It will automatically install itself, and will add a global `VueTagList`.
## Usage:
```html
{{ array | tagList }}
```
## License
[MIT](http://opensource.org/licenses/MIT)