You can use it like : <mat-autocomplete #auto="matAutocomplete" (optionSelected)='getPosts($event.option.value)'>. WORKING DEMO.
確定! 回上一頁