# angular-password

> The most performant AngularJS directive for matching two password input fields

Latest version **1.0.3** (published 2016-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-password
pnpm add angular-password
yarn add angular-password
bun add angular-password
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-09-01 |
| First published | 2014-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Author | gdi2290 |
| Maintainers | gdi2290 |
| Keywords | angular, angularjs, password, match password, confirm password, passwords, angular-password, ngPassword, gdi2290, PatrickJS |

## Links

- npm: https://www.npmjs.com/package/angular-password
- Repository: https://github.com/gdi2290/angular-password
- Issues: https://github.com/gdi2290/angular-password/issues
- npm.io page: https://npm.io/package/angular-password

## Dependencies (13)

- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [karma](https://npm.io/package/karma.md) ^0.13.22
- [jshint](https://npm.io/package/jshint.md) ^2.9.2
- [angular](https://npm.io/package/angular.md) ^1.5.5
- [gulp-jshint](https://npm.io/package/gulp-jshint.md) ^2.0.0
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.2
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^1.5.3
- [jasmine-core](https://npm.io/package/jasmine-core.md) ^2.4.1
- [angular-mocks](https://npm.io/package/angular-mocks.md) ^1.5.5
- [karma-jasmine](https://npm.io/package/karma-jasmine.md) ^0.3.8
- [phantomjs-prebuilt](https://npm.io/package/phantomjs-prebuilt.md) ^2.1.7
- [karma-spec-reporter](https://npm.io/package/karma-spec-reporter.md) 0.0.26
- [karma-phantomjs-launcher](https://npm.io/package/karma-phantomjs-launcher.md) ^1.0.0

## Recent versions

- 1.0.3 (latest) — 2016-09-01
- 1.0.1 — 2015-07-05
- 1.0.0 — 2015-03-04
- 0.0.2 — 2015-03-04
- 0.0.1 — 2014-08-20

## README

angular-password
================

The most performant AngularJS directive for matching two password input fields. I use angular's built in $parsers rather than relying on a $watch

Installation

`bower install angular-password`

or

`npm install angular-password`

Inject angular-password into your module

```javascript
angular.module('yourmodulename', ['ngPassword']);
```

Simple example.

```html
<input name="newPassword" ng-model="password.new">
<input match-password="newPassword" name="confirmPassword" ng-model="password.confirm">
```
With ngMessages
```html
<form name="profileForm" autocomplete="off" novalidate="" ng-submit="submit(password)">
  <fieldset>
    <label for="newPassword">New Password</label>
    <input type="password" name="newPassword" ng-model="password.new" required=""/>
    <div class="clearfix">
      <div ng-messages="profileForm.newPassword.$error" ng-if="profileForm.$submitted || profileForm.newPassword.$dirty" ng-messages-multiple="ng-messages-multiple" class="error-messages slide-right">
        <div ng-message="required" class="message slide-left">You did not enter a field name</div>
      </div>
    </div>
    <label for="confirmPassword">Re-Type New Password</label>
    <input type="password" name="confirmPassword" ng-model="password.confirm" match-password="newPassword" required=""/>
    <div class="clearfix">
      <div ng-messages="profileForm.confirmPassword.$error" ng-if="profileForm.$submitted || profileForm.confirmPassword.$dirty" ng-messages-multiple="ng-messages-multiple" class="error-messages slide-right">
        <div ng-message="required" class="message slide-left">You did not enter a field name</div>
        <div ng-message="passwordMatch" class="message slide-left">Your passwords did not match</div>
      </div>
    </div>
  </fieldset>
  <button>Submit</button>
</form>
```

Licensing information can be found [here](LICENSE)

---
_Source: https://npm.io/package/angular-password · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
