Put in order · Angular course · Module 8: Forms
Async validator chain
Order the RxJS operators in the async validator chain that checks name uniqueness (the order inside .pipe(), line by line).
Items to put in order
- first()
- map(exists => exists ? { nameTaken: true } : null)
- switchMap(name => service.checkNameExists(name))
- debounceTime(300)
You can check the correct answer by solving this task in the CodeWorlds game.