0

I am trying to implement the mdbootstrap pro version autocomplete but its giving error " no value accessor for form control with name: 'autocomplete'" for this I tried several ways but no luck, please help to get rid of this.

<mdb-autocomplete [label]="'Select color'" initialValue="Select color"
  name="autocomplete" [(ngModel)]="searchStr" 
   [datasource]="dataService" [minSearchLength]="0">
</mdb-autocomplete>
kboul
  • 13,836
  • 5
  • 42
  • 53
Deepak Patidar
  • 384
  • 1
  • 8
  • 23

1 Answers1

0

Just tested with MDB PRO package and works like a charm. Which version do you use and are you sure that you use MDB PRO (not MDB aka MDB Free).

As per the docs: https://mdbootstrap.com/angular/forms/autocomplete/

Autocompleted is available in MDB PRO

Dawid Adach
  • 749
  • 5
  • 27