【发布时间】:2017-04-20 02:33:24
【问题描述】:
我发现 here 我无法关闭 Chrome 自动完成功能。我做了我必须做的一切,但 Chrome 的自动完成功能仍然有效。无法理解我的错误在哪里以及我必须做些什么来解决它。 我的表单域:
const field_password = {
key: 'password',
type: 'input',
wrapper: 'page-form-field',
templateOptions: {
placeholder: 'sigin.password.label',
type: 'password',
required: true,
focus: $ctrl.isPasswordRecover,
},
};
$ctrl.fields = [
// ...,
field_password
];
我的表单选项
$ctrl.options = {
removeChromeAutoComplete: true
};
我的表格:
formly-form(
form = '$ctrl.form',
model = '$ctrl.model',
fields = '$ctrl.fields',
options = '$ctrl.options'
)
还有我的正式配置:
ction() {
'use strict';
angular
.module('WebClientApp.formly', [])
// Formly
.config(function(formlyConfigProvider) {
//...
})
.run(function(formlyConfig, formlyValidationMessages) {
formlyConfig.extras.removeChromeAutoComplete = true;
});
})();
【问题讨论】:
标签: angularjs google-chrome autocomplete angular-formly