redash/client/app/components/rd-time-ago.js

16 lines
329 B
JavaScript

const RdTimeAgo = {
bindings: {
value: '=',
},
controller() {
},
template: '<span>' +
'<span ng-show="$ctrl.value" am-time-ago="$ctrl.value"></span>' +
'<span ng-hide="$ctrl.value">-</span>' +
'</span>',
};
export default function init(ngModule) {
ngModule.component('rdTimeAgo', RdTimeAgo);
}