Skip to content

Commit f02ff61

Browse files
crisbetommalerba
authored andcommitted
fix(autocomplete): expose MatAutocompleteTrigger in template (angular#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 angular#9687.
1 parent 230d959 commit f02ff61

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)