_.str padding AngularJS filter
by plantface
HTML
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.0/angular.min.js"></script>
<script src="https://cdn.rawgit.com/epeli/underscore.string/master/dist/underscore.string.min.js"></script>
<script src="https://cdn.rawgit.com/tlvince/angular-underscore-string/master/angular-underscore-string.js"></script>
<div ng-app="app" ng-controller="NumController">
<div ng-repeat="num in nums">{{ num | s: 'pad':[2, '0'] }}</div>
</div>
JavaScript
angular.module('app', ['underscore.string']).controller('NumController', function ($scope) {
$scope.nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
});