From da144c1c77012fa4489dd84f013d499f9df8f72a Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 13 Jan 2023 11:33:53 +0200 Subject: [PATCH] Round pipe: Make it HTML in order to add class in number's size --- utils/pipes/number-round.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pipes/number-round.pipe.ts b/utils/pipes/number-round.pipe.ts index ab8398ea..62608761 100644 --- a/utils/pipes/number-round.pipe.ts +++ b/utils/pipes/number-round.pipe.ts @@ -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?'' + size.size + '':''); } }