For the output, I am looking to showcase a number in the following format => 979-9638403-03
.
At present, the number appears like this => 979963840303
.
portfolio.ts
export class Portfolio {
...
DEPO: number; /* DEPO */
constructor() {
...
this.DEPO = 0; /* DEPO */
}
}
online.component.html
{{ ((currentPortfolio$ | async)?.DEPO) }}
Is there a way to insert dashes for a more visually appealing result? The number is retrieved from a webservice for reference.
I'm uncertain if Angular supports this functionality. Any insights?