Skip to content

Commit b56cce5

Browse files
authored
Merge pull request #4 from arielcamus/patch-1
Updated README with usage for Vue >2.x
2 parents 1a8858c + edf27fd commit b56cce5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ A filter for Vuejs to truncate string
1919

2020
## Usage:
2121

22+
### Vue 1.x
2223
```html
2324
{{ text | truncate 100 '....' }}
2425
```
25-
26+
### Vue 2.x
27+
```html
28+
{{ text | truncate(100) }}
29+
```
2630
## Params:
2731
- length (Number): Text will be truncated if it's length is more than this param.
2832

0 commit comments

Comments
 (0)