Installation is super easy, simply add the dependency to your build and add to your your input
# use npm
$ npm install angular-restrict-number
Add angular-restrict-number to your dependencies
angular
.module('yourApp', ['ngNumber'])
.controller('SampleController', function () {})
Finally in your template you can add
<input type="text" ng-model=".." ng-number />