~/talk

Form of Art: Validation in Angular Forms

Talkat Ng-Poland 2017 · on Tuesday, 2017-11-21· [angular, testing]

A live demo builds a word‑guess form in both template‑driven and reactive styles, using built‑in Validators (required, minLength, maxLength) and a custom alphabet validator, plus an async validator that checks guesses and shows a spinner; details include async validators run after synchronous validators, reactive controls require reconstructing validator arrays and then call updateValueAndValidity after setValidators, and validators must be pure and can’t consume ongoing observables — the game mostly works but order and side‑effect bugs appear.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Shmuela Jacobs Introduction
  3. 2:22Demo
  4. 4:34State
  5. 6:49Errors
  6. 8:22Custom validator
  7. 9:38Testing
  8. 11:15Code
  9. 18:40Validation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.