make dates human friendly
This commit is contained in:
parent
db0a432bc8
commit
4fd78d030a
4 changed files with 20 additions and 8 deletions
|
|
@ -20,9 +20,11 @@ var copay = require('copay');
|
|||
|
||||
var copayApp = window.copayApp = angular.module('copay',[
|
||||
'ngRoute',
|
||||
'angularMoment',
|
||||
'mm.foundation',
|
||||
'monospaced.qrcode',
|
||||
'notifications',
|
||||
'copay.filters',
|
||||
'copay.header',
|
||||
'copay.footer',
|
||||
'copay.addresses',
|
||||
|
|
|
|||
|
|
@ -1 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copay.filters', [])
|
||||
.filter('amTimeAgo', ['amMoment', function(amMoment) {
|
||||
return function(input) {
|
||||
return amMoment.preprocessDate(input).fromNow();
|
||||
};
|
||||
}]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue