Skip to content

Commit 8997db0

Browse files
crisbetotinayuangao
authored andcommitted
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.
1 parent 5611947 commit 8997db0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/autocomplete/autocomplete-trigger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export function getMatAutocompleteMissingPanelError(): Error {
113113
'(input)': '_handleInput($event)',
114114
'(keydown)': '_handleKeydown($event)',
115115
},
116+
exportAs: 'matAutocompleteTrigger',
116117
providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR]
117118
})
118119
export class MatAutocompleteTrigger implements ControlValueAccessor, OnDestroy {

0 commit comments

Comments
 (0)