According to the MatAutocomplete documentation, there is a panel
property on MatAutocomplete class that will give you the panel's elementRef.
panel: ElementRef
Element for the panel containing the autocomplete options.
I am struggling to get this to work though as the autocomplete.panel is always undefined? What am I missing?
<mat-autocomplete #auto="matAutocomplete">
@ViewChild("auto") autocomplete: MatAutocomplete;
ngAfterViewInit(): void {
console.log(this.autocomplete.panel); // undefined??
}