Is there any way for globally turning off the autocomplete behaviour on material's MatInput
fields? I would like to get rid of this boiler plate code repeating all over the place:
<input matInput formControlName="myCtrl" autocomplete="off" />
E.g. in a similar way like globally defining the appearance and label options of the form fields with injection tokens in the app module's provider array:
// Default appearance of material form fields
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'fill' } },
// Globally disable label of material form fields
{ provide: MAT_LABEL_GLOBAL_OPTIONS, useValue: { float: 'never' } }
I scanned through doc and source code and could not find anything.