You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
550 B
TypeScript
24 lines
550 B
TypeScript
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-password-hide-show',
|
|
imports: [],
|
|
templateUrl: './password-hide-show.component.html',
|
|
styleUrl: './password-hide-show.component.scss'
|
|
})
|
|
export class PasswordHideShowComponent {
|
|
@Output() onEyeClick = new EventEmitter();
|
|
@Input() showPassword : boolean = false;
|
|
inputType : String = '';
|
|
constructor() { }
|
|
|
|
ngOnInit(): void {
|
|
|
|
}
|
|
|
|
togglePassword(){
|
|
this.showPassword = !this.showPassword;
|
|
this.onEyeClick.emit();
|
|
}
|
|
}
|