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\"
You could do something like this:
In your App class.
_show = false _pwdType = 'pwd' toggleShow() { this._show = !this._show this._pwdType = this._show ? 'text' : 'password' }//toggleShow
In your html
Having said that I like @codtex's answer better