adfTimeAgo pipe and demo (#2182)

This commit is contained in:
Denys Vuika
2017-08-08 09:46:23 +01:00
committed by Mario Romano
parent 3d65b49af7
commit 2955d8ec23
5 changed files with 45 additions and 4 deletions

View File

@@ -118,11 +118,14 @@
class="desktop-only">
</data-column>
<data-column
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_ON' | translate}}"
title="{{'DOCUMENT_LIST.COLUMNS.CREATED' | translate}}"
key="createdAt"
type="date"
format="medium"
class="desktop-only">
<ng-template let-value="value">
<span title="{{ value }}">{{ value | adfTimeAgo }}</span>
</ng-template>
</data-column>
</data-columns>