mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
17 lines
350 B
JavaScript
17 lines
350 B
JavaScript
angular.module('biomed.filters', [])
|
|
.filter('techs', function() {
|
|
return function(techs) {
|
|
if (!techs) return techs;
|
|
|
|
return techs.map(function(tech) {
|
|
return tech.name.first + ' ' + tech.name.last;
|
|
}).join(', ');
|
|
};
|
|
})
|
|
.filter('time', function() {
|
|
return function(time) {
|
|
return moment(time).format('h:mma');
|
|
};
|
|
});
|
|
|