防止在角度材料设计中自动填充保存的密码

时间:2016-07-26 12:01:13

标签: html angularjs angular-material

如何防止在角料设计中使用保存的密码自动填写密码字段

我使用过autocomplete =" off"它不适合我。

   <md-input-container class="md-block margin-top-10" flex-gt-sm>

      <input type="password" name="password" ng-model="auth.user.password"  
         name="password" ng-required="true" autocomplete="off" >  
      </md-input-container>

1 个答案:

答案 0 :(得分:2)

据我所知,这是材料的问题,正如文件here所述。

正如评论中所提到的,这只是一种解决方法,只需在表单定义中添加autocomplete="off"

相关问题