mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Initial Commit
This commit is contained in:
16
public/js/filters.js
Normal file
16
public/js/filters.js
Normal file
@ -0,0 +1,16 @@
|
||||
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');
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user