0.0.1 • Published 9 years ago

ngkit.compare-to v0.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

ngKit compare input values

A validator for a typical scenario where the user is required to retype email or password into another field.

<label>
Your password:
<input type='password'
       ng-model='user.password'/>
</label>

<label>
Retype password:
<input type='password'
       ng-model='user.confirmPassword'
       compare-to='user.password'/>
</label>

Add some styles as you see fit.

Usage

Add compare-to directive to your Angular module directly:

var app = angular.module('myApp', []);

require('ngkit.compare-to')(app);

Note: ngKit requires Browserify.

License

ISC / Boris Okunskiy