show/hide password text using angular2

后端 未结 8 1334
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-15 11:53

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\"         


        
8条回答
  •  不知归路
    2021-02-15 12:35

    in you html :

    in your css or sass

    .field-icon {
      float: right;
      left: -15px;
      margin-top: -25px;
      position: relative;
      z-index: 2;
    }
    

提交回复
热议问题