-1

I have used mat-select-autocomplete for multiselect dropdown. If i search some other values, I need to show "No result found". How can i acheive this? https://stackblitz.com/edit/mat-select-autocomplete-bjln34?file=src/app/app.component.ts

RobC
  • 22,977
  • 20
  • 73
  • 80
Sanjana
  • 121
  • 1
  • 9

1 Answers1

0

It seems it's not possible with the current API of the package. As you can see in the documentation and in the implementation you only have one output event that is triggered when an option is toggled.

@Output()
selectionChange: EventEmitter<any> = new EventEmitter();

For what you want to be possible, the method filterItem() method should also be an output and than you could use a ngIf to toggle a label.

iamdlm
  • 1,885
  • 1
  • 11
  • 21