1.0.0 • Published 9 years ago
angular-round v1.0.0
angular-round
Rounding filter for Angular
Installing
# use npm
$ npm install angular-round
# or bower
$ bower install angular-round
angular.module('myApp', [
require('angular-round')
]);
// or
angular.module('myApp', [
'round'
]);
API
angular-round is powered by round. Inject the round
service to use it directly. It also exposes a round
filter for use in templates.
{{expression | round:multiple:direction}}
multiple
(Number
): The multiple to round by. Defaults to1
.direction
('up'
/'down'
): The direction to round. Defaults to the nearest multiple, either up or down, if no direction is specified.
1.0.0
9 years ago