[(ngModel)]="selected"
[ngbTypeahead]="filter"
[resultTemplate]="displayTemplate"
- [inputFormatter]="formatMatchStrin"
+ [inputFormatter]="formatDisplayString"
(click)="click$.next($event.target.value)"
(selectItem)="selectorChanged($event)"
#instance="ngbTypeahead"
// Useful for massaging the match string prior to comparison
// Default version trims leading/trailing spaces
- formatMatchString: (TypeaheadEntry) => string;
+ formatDisplayString: (TypeaheadEntry) => string;
constructor(
private store: StoreService,
e => e.id === this.startId)[0];
}
- this.formatMatchString = (result: TypeaheadEntry) => {
+ this.formatDisplayString = (result: TypeaheadEntry) => {
return result.label.trim();
};
}