Closed AlexAbraham1 closed 6 years ago
public tickerSearch(val:string): Observable<any> { var search = fuzzysort.go(val, this.tickers, {keys: ['tickerPrepared', 'namePrepared'], threshold: -5000}); return of(search); }
`<input auto-complete name="ticker" placeholder="Enter Ticker" [(ngModel)]="data.ticker" [source]="tickerSearch.bind(this)" [list-formatter]="tickerListFormatter" [value-formatter]="tickerValueFormatter" [max-num-list]=10 (valueChanged)="tickerChanged($event)"
`
Hi!
Is there a way to override the default matching engine for autocomplete? Specifically this github repo looks like it would match results more easily
https://github.com/farzher/fuzzysort
Thanks!