I have a number let say 9. But I need it as String \"09\".
I know i can write my own logic. But I am looking for a implicit util function which can pad it.
I
Since Angular v4 there is DecimalPipe which let's easily add leading zeros: https://angular.io/api/common/DecimalPipe
In your html, you can use then something like:
{{ myNumber | number:'2.0' }}