We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee01566 commit 4d0c27dCopy full SHA for 4d0c27d
README.md
@@ -30,9 +30,16 @@ USAGE
30
31
It's a filter, you use it in your html like this:
32
33
- ```{{text|diff:otherText}}```
+ ```<div ng-bind-html="oldText|diff:newText"></div>```
34
35
- This will show the diff between ```text``` and ```otherText```
+ This will show the diff between ```oldText``` and ```newText```
36
+
37
+ Note that the filter returns html with <ins> and <del> tags, so in order to
38
+ display it you have to use ng-bind-html.
39
40
+Here's a demo, that's worth more than a thousand words:
41
42
+[http://plnkr.co/edit/nfhA5g?p=preview](http://plnkr.co/edit/nfhA5g?p=preview)
43
44
45
DEVELOPMENT
0 commit comments