From 4d0c27d24763f8aafd92bb713c79041718242d28 Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Mon, 23 Jun 2014 10:51:17 +0200 Subject: [PATCH] Add plunkr to Readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aeb6289..610d5ff 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,16 @@ USAGE It's a filter, you use it in your html like this: - ```{{text|diff:otherText}}``` + ```
``` - This will show the diff between ```text``` and ```otherText``` + This will show the diff between ```oldText``` and ```newText``` + + Note that the filter returns html with and tags, so in order to + display it you have to use ng-bind-html. + +Here's a demo, that's worth more than a thousand words: + +[http://plnkr.co/edit/nfhA5g?p=preview](http://plnkr.co/edit/nfhA5g?p=preview) DEVELOPMENT