angular-nz-input-formats
v0.5.2
Published
Angular directives to validate and format NZ-specific input types
Downloads
22
Maintainers
Readme
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 -->