UNPKG

@incdevco/framework

Version:
32 lines (20 loc) 485 B
/* global angular */ angular.module('currency', []) .filter('currencyCents', [ '$filter', function ($filter) { return function (input, options) { if (input) { return $filter('currency')(input / 100, options); } else if (input === 0) { return input; } return null; }; } ]); angular.module('currency') .run([ '$templateCache', function ($templateCache) {} ]);