:figure-caption!:

image::https://travis-ci.org/mmjmanders/ng-iban.svg?branch=master[title="travis status", alt="travis status", link="https://travis-ci.org/mmjmanders/ng-iban"]

image::https://app.wercker.com/status/eb4337041c62e162c5dd7af43122647c/m[title="wercker status", alt="wercker status", link="https://app.wercker.com/project/bykey/eb4337041c62e162c5dd7af43122647c"]

= ng-iban - validate input fields as IBAN
The goal is to provide an easy way to validate an input field as an IBAN number with https://angularjs.org/[AngularJS].
From version `0.4.0` the module uses https://github.com/arhs/iban.js[iban.js] for validation.

== Usage
First add

* `AngularJS`
* `ng-iban`

to your HTML file.

Make sure you require `mm.iban` as a dependency of your AngularJS module.

== Installation
`bower install ng-iban`

=== directive
[source,html]
----
<input type="text" ng-model="iban" ng-iban/>
----

To use this directive the `ngModel` directive must also be used because this directive depends on it.

:figure-caption!:

image::https://travis-ci.org/mmjmanders/ng-iban.svg?branch=master[title="travis status", alt="travis status", link="https://travis-ci.org/mmjmanders/ng-iban"]

image::https://app.wercker.com/status/eb4337041c62e162c5dd7af43122647c/m[title="wercker status", alt="wercker status", link="https://app.wercker.com/project/bykey/eb4337041c62e162c5dd7af43122647c"]

= ng-iban - validate input fields as IBAN
The goal is to provide an easy way to validate an input field as an IBAN number with https://angularjs.org/[AngularJS].
From version `0.4.0` the module uses https://github.com/arhs/iban.js[iban.js] for validation.

== Installation

=== Bower

`bower install ng-iban`

=== NPM

`npm install ng-iban`

=== Other

Download file `dist/ng-iban.mni.js`.

== Usage

Add `mm.iban` as a dependency of your AngularJS module.

=== directive
[source,html]
----
<input type="text" ng-model="iban" ng-iban/>
----

To use this directive the `ngModel` directive must also be used because this directive depends on it.

Update documentation for NPM support
Update documentation for NPM support
