Angular 角度2-使用ng反射模型的自动填充问题

Angular 角度2-使用ng反射模型的自动填充问题,angular,autocomplete,angular2-forms,Angular,Autocomplete,Angular2 Forms,我的输入是自动填写邮件id 我尝试过使用autocomplete=none | false | no但没有更改 代码: <input [(ngModel)]="query" type="text" class="form-control search-control" placeholder="Search for orders (by order number)" autocomplete="off"> 这是我的意见 <input _ngcontent-c1

我的输入是自动填写邮件id 我尝试过使用autocomplete=none | false | no但没有更改

代码:

 <input  [(ngModel)]="query"  type="text" 
 class="form-control search-control" 
 placeholder="Search for orders (by order number)"
 autocomplete="off">
这是我的意见

<input _ngcontent-c1="" autocomplete="off"
 class="form-control search-control ng-valid ng-dirty ng-touched"
 placeholder="Search for orders (by order number)" 
type="search" ng-reflect-model="shopadmin@zaska.com">
这是我检查时得到的

自动填充的附加图像


如何克服这个自动填充问题

我也面临着同样的问题。 因此,通过下面的解决方案,我已经解决了它

步骤1在表单级别添加自动完成=关闭 步骤2添加自动完成=该输入类型上的假电子邮件

注意:“假电子邮件”只是一个文本,你可以写任何东西来代替它

<form autocomplete="off">
    <input type="text" autocomplete="fake-email">
</form>

希望这将对您有所帮助。

谢谢您的时间,它确实有效,但当我添加此项时,输入的功能不起作用搜索不起作用。