Physics, asked by baenglish5193, 11 months ago

Can't bind to 'matautocomplete' since it isn't a known property of 'input'. ("-form-field class="example-full-width">

Answers

Answered by aqsaahmed19945
3
  1. When 'mat option' will be component of an angular component & it'll have 'value' input, then verifying is necessary for that part of module.  
  2. When 'mat-option' will be a component for Web, then adding 'CUSTOM_ELEMENTS_SCHEMA' text to the '@NgModule.schemas' of that component to prevent that message.
  3. For allowing any property we have to add 'NO_ERRORS_SCHEMA' in the '@NgModule.schemas' of  component. ("Autocomplete"> "): ng:///AppModule/OrderentryComponent.html@42:85

When 'mat-option' will not be known :

  1. When 'mat-option' will be angular component, verifying that part of module would be necessary.
  2. When 'mat-option' will be a component for Web, then adding 'CUSTOM_ELEMENTS_SCHEMA' text to the '@NgModule.schemas' of that component to prevent that message. (" <mat-autocomplete autoActiveFirstOption #auto="matAutocomplete">
Similar questions