Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 994 Bytes

README.md

File metadata and controls

40 lines (31 loc) · 994 Bytes

ngx-password-toggle

Angular 4+ directive to show/hide password

npm npm npm npm

Install

npm i ngx-password-toggle

Import

import { NgxPasswordToggleModule } from 'ngx-password-toggle';

@NgModule({
  imports: [
    ...,
    NgxPasswordToggleModule
  ]
})
export class MyModule(){ }

Use directive

use passwordToggle directive

<!-- Password -->
<div class="field">
  <label for="">Password</label>
  <input type="password" name="password" ngModel passwordToggle required>
</div>