i want to show/hide the password text based on the user click. But i am getting the following error saying:
export class App { password = \"secret\"
This is a better answer. Check below:
input
click action
Show
component
// variable show: boolean; constructor() { // initialize variable value this.show = false; } // click event function toggle password() { this.show = !this.show; }