Skip to content

Instantly share code, notes, and snippets.

@yaroslav-ilin
yaroslav-ilin / md-autocomplete.ts
Created June 29, 2016 17:20 — forked from vladimir-ivanov/md-autocomplete.ts
angular2 material autocomplete - md-autocomplete widget (without md-virtual-repeat) to work with ng2-material
import {Component, Input, OnInit, Output, EventEmitter} from "angular2/core";
import {MdList, MdListItem, MdInput, MdInputContainer} from "ng2-material/all";
@Component({
selector: "md-autocomplete",
directives: <Array<any>>[MdList, MdListItem, MdInput, MdInputContainer],
template: `
<md-input-container>
<label>{{placeholder}}</label>
<input md-input type="search"