[ADF-1586] Added docs for Core services (#2548)

This commit is contained in:
Andy Stark
2017-10-26 10:47:44 +01:00
committed by Eugenio Romano
parent 851a0cfdb3
commit 3aa2724d25
9 changed files with 402 additions and 6 deletions

22
docs/time-ago.pipe.md Normal file
View File

@@ -0,0 +1,22 @@
# Time Ago pipe
Converts a recent past date into a number of days ago.
## Basic Usage
```HTML
<div>
Last modified: {{ date | adfTimeAgo }}
</div>
```
## Details
The pipe finds the difference between the input date and the current date. If it
is less than seven days then then the date will be formatted as "X days ago".
Otherwise, the usual full date format is used.
<!-- Don't edit the See also section. Edit seeAlsoGraph.json and run config/generateSeeAlso.js -->
<!-- seealso start -->
<!-- seealso end -->