/angular-ui-cardNo

a card number input component - a angular directive which support value real-time formatting as card number

Primary LanguageJavaScriptMIT LicenseMIT

CardNo Directive

a card number input component - a angular directive which support value real-time formatting as card number

Requirements

  • AngularJS

Preparation

npm install
npm test

Testing

We use karma to ensure the quality of the code. The easiest way to run test is to use grunt:

npm install
npm test

The karma task will try to open a browser in which to run the tests. Make sure this is available or change the configuration in test\karma.config.js

Usage

read https://github.com/zjuwwq/angular-ui-cardNo/tree/master/demo for detail