Skip to content

Commit

Permalink
Updated the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Apr 4, 2016
1 parent 2851dd5 commit 5498725
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# angular-filters
[![Bower version](https://img.shields.io/bower/v/ng-filters.svg)](http://bower.io/search/?q=ng-filters)
[![Gitter](https://img.shields.io/badge/gitter-join_chat-brightgreen.svg)](https://gitter.im/exceptionless/Discuss)
[![Donate](https://img.shields.io/badge/donorbox-donate-blue.svg)](https://donorbox.org/exceptionless)
[![Gitter](https://img.shields.io/badge/gitter-join_chat-brightgreen.svg)](https://gitter.im/exceptionless/Discuss)
[![Donate](https://img.shields.io/badge/donorbox-donate-blue.svg)](https://donorbox.org/exceptionless)

Useful filters for AngularJS

Expand Down Expand Up @@ -42,6 +42,24 @@ Result:
1, 2
```

###percentage
Returns a number formatted as a percentage. Numbers between 0 and 1 will be rounded up to 10th decimal place.<br/>

```html
{{123 | percentage}}
{{null | percentage}}
{{60.0 | percentage}}
{{0 | percentage}}
{{0.000001 | percentage}}

Result:
123%
0%
60%
0%
0.1%
```

###replace
Replaces string content<br/>

Expand Down

0 comments on commit 5498725

Please sign in to comment.