~/talk

Comparing Angular Forms

Talkat NG-MY 2019 · 2019-07-06..07-07· [angular, frontend-architecture]
slides:none on file

Compares Angular’s template-driven forms with reactive forms and claims reactive is more scalable, testable and predictable. Shows concrete APIs: FormControl/FormGroup/FormArray and FormBuilder to avoid repeated new calls, demonstrates Validators plus a custom pure-function validator that forbids the name "Bob", and uses the formControl.valueChanges observable for live reactions. Describes template change detection via ng-touched ng-dirty ng-valid CSS classes, explains template forms require rendering for tests while reactive forms are synchronous and manipulable entirely in code.

AI-written summary · about

  1. 0:00Intro
  2. 0:52Angular Documentation
  3. 1:38Template Forms
  4. 2:08Basic Forms
  5. 2:20Component Class
  6. 2:44HTML Template
  7. 3:18Example
  8. 4:25Change Detection
  9. 6:34Error Handling
  10. 7:47Reactive Forms
  11. 8:20Reactive Forms API
  12. 8:56Reactive Forms in Angular
  13. 10:36Form Builder
  14. 11:39Validators
  15. 12:43Custom Validation
  16. 13:45Control Value Changes
  17. 15:26Reactive vs Template Forms
~/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.