I am using a simple input in angular.
<ng-template #searchinput>
<mat-form-field class="w-100" floatLabel="never">
<input matInput placeholder="Search" [id]="'search_'+col.columnDef" (input)="searchChange($event.target.value, col.columnDef)">
</mat-form-field>
</ng-template>
i want to add debounceTime in the event.
searchChange(event, colName) {
console.log(event, colName);
event.pipe(
debounceTime(300),
distinctUntilChanged())
.subscribe(value => console.log(value)
);
}
But this is not working ERROR TypeError: event.pipe is not a function. Need some help.