How do i prevent the 'save password' dialog box in the browser using 
Angular 4. I tried to adding hidden password field but not working.

<form [formGroup]="loginFrm" class="form-horizontal" autocomplete="off">

    <div class="form-group">
       <div class="col-md-12">
           <input type="text" class="form-control" name="username" 
placeholder="Username" formControlName="username" autocomplete="off"/>
       </div>
    </div> 

    <div class="form-group">
      <div class="col-md-12">
          <input type="password" autocomplete="off" tabindex="-1" 
style="display:none">
          <input type="password" class="form-control" placeholder="Password" 
name="password" formControlName="password" autocomplete="off" required/>
      </div>
    </div> 
</form>



-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to