Australian Business Number (ABN) validation directive.
0 people use it
Author: 54ebb63d1b322659b7f5bf3ae96acf21? JMontagu
Submitted by: 54ebb63d1b322659b7f5bf3ae96acf21? JMontagu

Australian Business Number (ABN) directive Build Status

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


View the demo at



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


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

$ grunt


  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:


This code is released under the MIT license.

comments powered by Disqus
This page was last updated almost 5 years ago.