@christof-fritz/ngx-confirm-password-validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

NgxConfirmPasswordValidator

A validator to check if two input fields in a template driven form are equal.

Adds the validation errors to the two inputs instead of the form.

Demo

<form otherPasswordControlName="password_repeat"
      passwordControlName="password"
      confirmPasswordValidator>
  <input [maxlength]="80"
         [minlength]="6"
         [name]="'username'"
         [ngModel]="username"
         disabled>

  <input [(ngModel)]="password"
         name="password"
         required
         type="password">

  <input [(ngModel)]="password_repeat"
         name="password_repeat"
         required
         type="password">
</form>

Package Sidebar

Install

npm i @christof-fritz/ngx-confirm-password-validator

Weekly Downloads

1

Version

1.0.2

License

BSD-3-Clause

Unpacked Size

23.5 kB

Total Files

12

Last publish

Collaborators

  • nxtman