From edf27fddc7c12819ed86e0764680a9ccce219a92 Mon Sep 17 00:00:00 2001 From: Ariel Camus Date: Mon, 20 Feb 2017 20:19:51 -0800 Subject: [PATCH 1/2] Updated README with usage for Vue >2.x --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6961c33..4ac3fcf 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,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. From 9e9261c91a337e20bd417dbc331a74c47c982223 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Fri, 7 Jul 2017 02:38:07 +0000 Subject: [PATCH 2/2] docs(readme): add Greenkeeper badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4ac3fcf..de67e0f 100644 --- a/README.md +++ b/README.md @@ -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: