Put in order · Angular course · Module 7: RxJS
Search chain with debounce
Arrange the operators of a full search chain with debounce in their order inside pipe():
Items to put in order
- switchMap(query => this.http.get(...))
- debounceTime(300),
- distinctUntilChanged(),
- filter(query => query.length >= 2),
- map(event => event.target.value),
You can check the correct answer by solving this task in the CodeWorlds game.