Skip to content

Commit

Permalink
Merge branch 'master' of github.com:imcvampire/vue-truncate-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
imcvampire committed Aug 25, 2017
2 parents 2209237 + c8f8122 commit 291f3f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# vue-truncate-filter

[![Greenkeeper badge](https://badges.greenkeeper.io/imcvampire/vue-truncate-filter.svg)](https://greenkeeper.io/)

A filter for Vuejs to truncate string

## Install:
Expand All @@ -19,10 +21,14 @@ A filter for Vuejs to truncate string

## Usage:

### Vue 1.x
```html
{{ text | truncate 100 '....' }}
```

### Vue 2.x
```html
{{ text | truncate(100) }}
```
## Params:
- length (Number): Text will be truncated if it's length is more than this param.

Expand Down

0 comments on commit 291f3f3

Please sign in to comment.