angular-zipcode-filter
AngularJS filter to automatically format long and short zip codes.
Installation
You can install the filter using Bower:
$ bower install angular-zipcode-filter
Or npm:
$ npm install angular-zipcode-filter
Then you have to include it in your HTML:
And inject the module angular-zipcode-filter
as a dependency in your application:
angular;
Usage
You can use it like any other AngularJS filter:
{{ 028861617 | zipcode }}
The output will be:
02886-1617
Testing
To run the tests:
$ npm install && bower install$ grunt test