Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brockpetrie committed Jan 13, 2016
1 parent 688052a commit fd3be32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ Display a moment in relative time, either from now or from a specified date.
**With suffix hidden** (e.g. '4 days ago' -> '4 days')

```html
<span>{{ someDate | moment "from" "now" true }}</span>
<span>{{ someDate | moment "from" "now" "true" }}</span>
<!-- or -->
<span>{{ someDate | moment "from" true }}</span>
<span>{{ someDate | moment "from" "true" }}</span>
<!-- or with a reference time -->
<span>{{ someDate | moment "from" "Jan. 11th, 2000" true }}</span>
<span>{{ someDate | moment "from" "Jan. 11th, 2000" "true" }}</span>
```

For more information about `moment#fromNow` and `moment#from`, check out <http://momentjs.com/docs/#/displaying/fromnow/> and <http://momentjs.com/docs/#/displaying/from/>.
Expand Down

0 comments on commit fd3be32

Please sign in to comment.