Code: Select all
<p-autoComplete [(ngModel)]="texts" [suggestions]="results" (completeMethod)="search($event)" [multiple]="true"></p-autoComplete>
I have codealyzer setup and it is complaining for me to specify the event type when I have the following code in my component
Code: Select all
search(event) {
this.mylookupservice.getResults(event.query).then(data => {
this.results = data;
});
}