angular-nz-input-formats

Angular directives to validate and format NZ-specific input types

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10Feb 25, 2016Apr 8, 2015Minified + gzip package size for angular-nz-input-formats in KB

Readme

Build Status Code Climate Test Coverage Coverage Status Dependency Status devDependency Status

Angular NZ Input Formats

Angular directives to validate and format NZ-specific input types

Installation

npm install angular-nz-input-formats or bower install angular-nz-input-formats

Then add nzInputFormats to your angular dependencies

Usage

<input ng-model="bankNumber" nz-bank-number />
<input ng-model="bankNumber" nz-bank-number="{strict:true}" /> <!-- validates bank and branch ranges -->
<input ng-model="irdNumber" nz-ird-number />
<input ng-model="phoneNumber" nz-phone-number />
<input ng-model="phoneNumber" nz-phone-number="{intl: true|false}" /> <!-- enforce international|local numbers -->
<input ng-model="phoneNumber" nz-phone-number="{type: 'mobile'|'landline'|'special'}" /> <!-- enforce a type -->

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.