Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trackFuzzySearchChanges() {
- this.fuzzySearch.valueChanges
- .pipe(
- debounceTime(2000), // fuzzy search changed when keyup for 2 sec in the mat-form-field
- distinctUntilChanged(),
- tap(() => {
- this.paginator.pageIndex = 0;
- this.loadData();
- })
- ).subscribe();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement