angular-round

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i angular-round

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker