Put in order · Angular course · Module 7: RxJS
Operator chain inside pipe
Arrange the lines of the search operator chain in the order in which we write them inside pipe():
Items to put in order
- filter(query => query.length >= 2),
- debounceTime(300),
- distinctUntilChanged(),
- switchMap(query => this.search(query))
You can check the correct answer by solving this task in the CodeWorlds game.