#806 reactivar filtro currency
This commit is contained in:
parent
4efd863716
commit
a546812087
|
@ -7,8 +7,8 @@ import ngModule from '../module';
|
|||
*/
|
||||
export default function currency() {
|
||||
return function(input, symbol, fractionSize) {
|
||||
if (input == null || input === '')
|
||||
return null;
|
||||
if (input === undefined || input === '')
|
||||
return undefined;
|
||||
if (typeof input == 'number' && fractionSize)
|
||||
input = input.toFixed(fractionSize);
|
||||
return `${input} ${symbol}`;
|
||||
|
|
|
@ -3,4 +3,4 @@ import './ucwords';
|
|||
import './dash-if-empty';
|
||||
import './dateTime';
|
||||
import './percentage';
|
||||
// import './currency';
|
||||
import './currency';
|
||||
|
|
Loading…
Reference in New Issue