this.searchTerms.pipe(
debounceTime(300), // Wait 300ms after each keystroke
distinctUntilChanged(), // Ignore if the next search term is the same as the previous
switchMap((term: string) => this.searchService.search(term)),
).subscribe();
Yorumlar
Yorum Gönder