I checked the documentation. What I would like is for my numbers to have four digits and leading zeros.
22 to 0022 1 to 0001
Can someone
Pls use the below filter modify if required for some modifications
app.filter('customNo', function () { return function (input) { var n = input; return (n < 10) ? '000' + n : (n < 100) ? '00' + n : (n < 1000) ? '0' + n : '' + n; } }); {{number|customNo}}