angular-round
Rounding filter for Angular
Installing
# use npm $ npm install angular-round# or bower $ bower install angular-round
angular;// orangular;
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.