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:
Kristiyan Kostadinov
2018-02-01 20:25:39 +01:00
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 {