Yet Another Typeahead for Angular2
A simple typeahead implementation which provides autocompletion of input values separated by whitespace.
Install
npm install ng2-yata --save
Usage
;; @ private placeholder: string = 'Enter Text'; private suggestions: string = ; // available suggestions private filterValue: string = ''; private inputStyle = ''; // input element inline css style private inputStyleClass = // input element style classes to apply 'form-control': true 'conditional-style-class': apply ; private apply: boolean = false; // conditionally apply the css class { // Input value accessible through event.value and this.filterValue // Find suggestions and populate suggestions array }
Additional Attributes
style
Containing element inline style.
styleClass
Containing element style classes.
delay
The amount of milliseconds to wait, after typing has stopped, to execute the
onComplete
callback.