Answers for "angular autocomplete displaywith"

0

angular autocomplete displaywith

<md-autocomplete #auto="mdAutocomplete" [displayWith]="displayFn">
  <md-option *ngFor="let state of filteredStates | async" [value]="state">
    {{ state.name }}
  </md-option>
</md-autocomplete>

displayFn(state) {
  return state.name;
}
Posted by: Guest on October-29-2021

Code answers related to "angular autocomplete displaywith"

Code answers related to "Javascript"

Browse Popular Code Answers by Language