No filter required, Just use an expression in your html
{{("00000"+1).slice(-6)}} // '000001'
{{("00000"+123456).slice(-6)}} // '123456'
More Related Contents:
- http request has been block from https
- “Thinking in AngularJS” if I have a jQuery background? [closed]
- AngularJS routing without the hash ‘#’
- AngularJS passing data to $http.get request
- Angular IE Caching issue for $http
- How to watch for a route change in AngularJS?
- How to find a reason AngularJS “Argument ‘MyCtrl’ is not a function, got undefined”
- AngularJS – UI Router – programmatically add states
- $watch an object
- ngRepeat Filter by deep property
- Custom name for BLOB URL
- Failed to instantiate module [$injector:unpr] Unknown provider: $routeProvider
- How to make lodash work with Angular JS?
- UI-router interfers with $httpbackend unit test, angular js
- AngularJS CORS Issues
- how to bind Bootstrap-datepicker element with angularjs ng-model?
- Angular $http is sending OPTIONS instead of PUT/POST
- How do I connect this interval service to a view?
- Produce a promise which depends on recursive promises
- Best way to wait for .forEach() to complete
- ng-repeat with ng-transclude inside a directive
- AngularJS: ng-if not working in combination with ng-click?
- apply formatting filter dynamically in a ng-repeat
- Angular ui router – Redirection doesn’t work at all
- ng-mouseover and leave to toggle item using mouse in angularjs
- AngularJS ng-include inside of Google Maps InfoWindow?
- Tell screen reader that page has changed in Backbone/Angular single-page app
- how to fix 404 warnings for images during karma unit testing
- How do I pass multiple attributes into an Angular.js attribute directive?
- Globally defined AngularJS controllers and encapsulation