Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. trackFuzzySearchChanges() {
  2. this.fuzzySearch.valueChanges
  3. .pipe(
  4. debounceTime(2000), // fuzzy search changed when keyup for 2 sec in the mat-form-field
  5. distinctUntilChanged(),
  6. tap(() => {
  7. this.paginator.pageIndex = 0;
  8. this.loadData();
  9. })
  10. ).subscribe();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement