Skip to content

Commit

Permalink
fix(autocomplete): add mat version of autocomplete @input (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
kara authored and tinayuangao committed Feb 9, 2017
1 parent cc77ef4 commit e5521a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/autocomplete/autocomplete-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e5521a8

Please sign in to comment.