@kgong1222/autocomplete-search v0.0.2
AutocompleteSearch
This library was created to output a user's search query and take in the returned data while handling redirects when user's select an item from the returned data Disclaimer: Currently this library is only able to handle WhiteSky's returned data
Quick start
Installation
npm install @kgong1222/autocomplete-search
Usage
This autocomplete search component will an event binding and a property binding two-way binding to share data between itself and the application.
The event binding is an @Output()
property set to an EventEmitter<string>
that listens to user's query input and flows data out to the parent component to perform necessary calls to the backend.
The property binding is an observerable that holds the data returned from the backend and passed back to the autocomplete component via @Input()
set as an Observable<any[]>
.
Example
<lib-autocomplete-search [autocompleteSuggestions$]=autocompleteSuggestions$ (autocompleteQuery)="addItem($event)"></lib-autocomplete-search>