I'm using the angular decimal pipe like this:
// Typescript
@Component({...})
export class ConfusionMatrixComponent {
@Input()
roundRules = '1.0-2';
}
// HTML:
<div class="value">{{ getIntensityNumber(i) | number: roundRules }}</div>
How can I use the same pipe but on a typescript function?