Implement an async Angular validator with HTTP and PENDING feedback
Source: angular.devadvanced

Tests Angular async validator lifecycle and HTTP race conditions. A strong candidate returns an Observable from AsyncValidatorFn, lets Angular set PENDING automatically, debounces input, and binds control.pending in the template.
Tests deep knowledge of the Angular Reactive Forms async validation lifecycle and HTTP race-condition prevention. A strong answer covers implementing AsyncValidatorFn that returns an Observable or Promise, Angular automatically setting the control to PENDING, debouncing keystrokes with debounceTime, and surfacing progress via control.pending in the template.
Read the original → angular.dev
- #angular
- #reactive-forms
- #async-validators
- #rxjs
- #http
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.