ng-AustralianBusinessNumber

Australian Business Number (ABN) validation directive.
0 people use it
Author: 54ebb63d1b322659b7f5bf3ae96acf21?d=https%3a%2f%2fidenticons.github.com%2f6fe587ce02411bbbf42a78c2d431cbb4 JMontagu
Submitted by: 54ebb63d1b322659b7f5bf3ae96acf21?d=https%3a%2f%2fidenticons.github.com%2f6fe587ce02411bbbf42a78c2d431cbb4 JMontagu

Australian Business Number (ABN) directive Build Status

ABN validation directive for AngularJS. Uses the Australian Taxation Office (ATO) ABN verification formula.

Demo

View the demo at jmontagu.github.io/ng-AustralianBusinessNumber/

Requirements

Setup

  1. Install Karma, Grunt and Bower $ npm install -g karma grunt-cli bower
  2. Install development dependencies $ npm install
  3. Install components $ bower install

Testing

This project uses Grunt to check for JavaScript syntax errors and execute all unit tests. To run Grunt, simply execute:

$ grunt

Usage

  1. Add src/australianBusinessNumber.js to your solution
  2. Add the australianBusinessNumber module as a dependency to your application module:

Apply this directive to your form elements:

To make the element mandatory:

To display a validation error:

License

This code is released under the MIT license.

comments powered by Disqus
This page was last updated about 4 years ago.