Round pipe: Make it HTML in order to add class in number's size
This commit is contained in:
parent
4cd5bcd12b
commit
da144c1c77
|
@ -18,6 +18,6 @@ export class NumberRoundPipe implements PipeTransform {
|
|||
decimal = args[1];
|
||||
}
|
||||
let size: NumberSize = NumberUtils.roundNumber(value, level, decimal);
|
||||
return this.decimalPipe.transform(size.number) + size.size;
|
||||
return this.decimalPipe.transform(size.number) + (size.size?'<span class="number-size">' + size.size + '</span>':'');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue