1.0.0 • Published 9 years ago

angular-round v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

angular-round Build Status

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 to 1.
  • direction ('up'/'down'): The direction to round. Defaults to the nearest multiple, either up or down, if no direction is specified.