mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(autocomplete): expose MatAutocompleteTrigger in template (#9703)
Adds an `exportAs` to the `MatAutocompleteTrigger` so it can be accessed through templates and because the methods for toggling the panel are on it. Fixes #9687.
This commit is contained in:
committed by
tinayuangao
parent
561194746b
commit
8997db0513
@@ -113,6 +113,7 @@ export function getMatAutocompleteMissingPanelError(): Error {
|
||||
'(input)': '_handleInput($event)',
|
||||
'(keydown)': '_handleKeydown($event)',
|
||||
},
|
||||
exportAs: 'matAutocompleteTrigger',
|
||||
providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR]
|
||||
})
|
||||
export class MatAutocompleteTrigger implements ControlValueAccessor, OnDestroy {
|
||||
|
||||
Reference in New Issue
Block a user