From ae921d56175cab80b87c5bdedba8bd2a6e51ff27 Mon Sep 17 00:00:00 2001 From: Kara Erickson Date: Fri, 3 Feb 2017 16:14:32 -0800 Subject: [PATCH] fix(autocomplete): add mat version of autocomplete @Input --- src/lib/autocomplete/autocomplete-trigger.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/autocomplete/autocomplete-trigger.ts b/src/lib/autocomplete/autocomplete-trigger.ts index e15e902a54d9..2e65864feb79 100644 --- a/src/lib/autocomplete/autocomplete-trigger.ts +++ b/src/lib/autocomplete/autocomplete-trigger.ts @@ -92,6 +92,16 @@ export class MdAutocompleteTrigger implements AfterContentInit, ControlValueAcce /* The autocomplete panel to be attached to this trigger. */ @Input('mdAutocomplete') autocomplete: MdAutocomplete; + /** Property with mat- prefix for no-conflict mode. */ + @Input('matAutocomplete') + get _matAutocomplete(): MdAutocomplete { + return this.autocomplete; + } + + set _matAutocomplete(autocomplete: MdAutocomplete) { + this.autocomplete = autocomplete; + } + constructor(private _element: ElementRef, private _overlay: Overlay, private _viewContainerRef: ViewContainerRef, @Optional() private _dir: Dir, private _zone: NgZone,