Skip to content

Commit

Permalink
fix(typeahead): allow to work with formControl
Browse files Browse the repository at this point in the history
    fixes #1595
  • Loading branch information
valorkin committed Feb 3, 2017
1 parent 54eb13d commit e3f4854
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/typeahead/typeahead.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ import { ComponentLoaderFactory, ComponentLoader } from '../component-loader';
/* tslint:disable-next-line */
const KeyboardEvent = (global as any).KeyboardEvent as KeyboardEvent;

@Directive({
/* tslint:disable */
selector: '[typeahead][ngModel],[typeahead][formControlName]'
/* tslint:enable */
})
@Directive({selector: '[typeahead]'})
export class TypeaheadDirective implements OnInit, OnDestroy {
/** options source, can be Array of strings, objects or an Observable for external matching process */
@Input() public typeahead: any;
Expand Down

0 comments on commit e3f4854

Please sign in to comment.