AngularJS 1.3 Currency Formatting
AngularJS 1.3 Currency Formatting
by Gururaj Dharani
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.js"></script>
<body>
<div ng-controller="testCtrl">
<p ng-repeat="i in items | orderBy:'+':true" ng-bind="i.id"></p>
<hr/>
<p ng-repeat="i in items | orderBy:'-'" ng-bind="i.id"></p>
</div>
</body>
JavaScript
angular.module('test', []).controller('testCtrl', function ($scope) {
$scope.items = [
{ id: 1 },
{ id: 2 },
{ id: 3 },
{ id: 4 }
];
});
angular.bootstrap(document, ['test']);