Loading topic
FormControl and FormGroup, and have seen an RxJS Observable. Here you will take a validator apart: its type, its inputs, its two possible return values, and the rules that keep it predictable. La7 min readFormControl and FormGroup, read TypeScript types, and have seen the validator function signature from the previous chapter. The return value is small, but most va7 min readFormControl and FormGroup, and basic RxJS. You should also have read the previous chapters on the validator function con7 min readFormControl or FormGroup, as covered in the earlier chapters. It also assumes you know Angular control flow (@if, which needs Angular 17 or later) and basic template binding. The chapter covers what a template can read 6 min readValidatorFn, attach it to a FormControl, and read control.errors in a template. You should also be comfortable with TypeScript closures and generics. If a validator returning ValidationErrors | null is still unfamiliar, review the earlier chapters o7 min readValidationErrors object or null. It also assumes you can attach validators to a FormControl and build a FormGroup in a reactive form. Typed forms (Angular 14 or later) and the @if template syntax (Angular 176 min readFormControl, and read errors in a template. It also assumes you know pipe, map, and switchMap from RxJS. The goal is a validator that asks a server whether a value is acceptable, without flooding the server and with6 min readFormControl, and write an async validator that returns an Observable. It covers when validators run, what status a control has while an async validator is in flight, and how to trigger validation by hand.5 min readFormControl, FormGroup, and ngModel. It shows how to make a custom validator work in a template-driven form by wrapping it in a directive.6 min readFormControl or FormGroup, and read basic RxJ6 min read