Zum Inhalt springen

Vortrag

Signal Forms: Details & Live Coding

enterJS 2026von Manfred Steyer

Folien zum Vortrag (35)

  1. Folie 1 von 35: Signal Forms: Details & Live Coding
  2. Folie 2 von 35
  3. Folie 3 von 35: 1) Signal Forms 101
  4. Folie 4 von 35: About Me
  5. Folie 5 von 35: Signal Forms 101
  6. Folie 6 von 35: Setting up a Signal Form
  7. Folie 7 von 35: Setting up a Signal Form
  8. Folie 8 von 35: Setting up a Signal Form
  9. Folie 9 von 35: FieldTree
  10. Folie 10 von 35: FieldTree
  11. Folie 11 von 35: FormField
  12. Folie 12 von 35: Schema
  13. Folie 13 von 35: Schema
  14. Folie 14 von 35: DEMO
  15. Folie 15 von 35: Splitting Large Forms
  16. Folie 16 von 35
  17. Folie 17 von 35: DEMO
  18. Folie 18 von 35: Conditional Validation
  19. Folie 19 von 35: Validation for Delayed Flights
  20. Folie 20 von 35: DEMO
  21. Folie 21 von 35: Metadata
  22. Folie 22 von 35: Tell the User Upfront!
  23. Folie 23 von 35: DEMO
  24. Folie 24 von 35: Null & Undefined
  25. Folie 25 von 35: Undefined: Does not Exist!
  26. Folie 26 von 35: Domain Model vs. Form Model
  27. Folie 27 von 35: Custom Controls
  28. Folie 28 von 35: DelayStepper
  29. Folie 29 von 35: DEMO
  30. Folie 30 von 35: Interop
  31. Folie 31 von 35: Stepwise Migrations
  32. Folie 32 von 35: DEMO
  33. Folie 33 von 35: Architecture, Concepts, Implementation
  34. Folie 34 von 35: • Splitting Large Forms
  35. Folie 35 von 35: [Social Media] Manfred Steyer
Folientext (alle Folien)
  1. Signal Forms: Details & Live Coding ANGULARarchitects.io
  2. –
  3. 1) Signal Forms 101 2) Splitting Large Forms 3) Conditional Validation 4) Using Metadata 5) Null & Undefined 6) Custom Controls 7) Interop with Reactive Forms Agenda
  4. About Me (Remote) Angular Workshops and Consulting Google Developer Expert for Angular Blog, Books, Articles, and Talks about Angular Manfred Steyer, ANGULARarchitects.io
  5. Signal Forms 101
  6. Setting up a Signal Form protected readonly flight = signal({ id: 123, from: 'Graz', to: 'Rome', aircraft: { type: 'T0815', registration: 'R4711' }, […] });
  7. Setting up a Signal Form protected readonly flight = signal({ id: 123, from: 'Graz', to: 'Rome', aircraft: { type: 'T0815', registration: 'R4711' }, […] }); protected readonly flightForm = form(this.flight);
  8. Setting up a Signal Form protected readonly flight = signal({ id: 123, from: 'Graz', to: 'Rome', aircraft: { type: 'T0815', registration: 'R4711' }, […] }); protected readonly flightForm = form(this.flight); // ^^^ FieldTree
  9. FieldTree const valid = this.flightForm.from().valid(); const errors = this.flightForm.from().errors(); const value = this.flightForm.from().value();
  10. FieldTree const valid = this.flightForm.from().valid(); const errors = this.flightForm.from().errors(); const value = this.flightForm.from().value(); const regValid = this.flightForm.aircraft.registration().valid(); const regErrors = this.flightForm.aircraft.registration().errors(); const regValue = this.flightForm.aircraft.registration().value();
  11. FormField
  12. Schema protected readonly flightForm = form(this.flight);
  13. Schema protected readonly flightForm = form(this.flight, (path) => { required(path.from); minLength(path.from, 3); });
  14. DEMO
  15. Splitting Large Forms
  16. –
  17. DEMO
  18. Conditional Validation
  19. Validation for Delayed Flights
  20. DEMO
  21. Metadata
  22. Tell the User Upfront!
  23. DEMO
  24. Null & Undefined
  25. Undefined: Does not Exist! export interface Flight { id: number; from: string; to: string; […] delay?: number; }
  26. Domain Model vs. Form Model export interface FlightFormModel { id: number; from: string; to: string; […] // Not optional delay: number } export interface FlightDomainModel { id: number; from: string; to: string; […] // Optional delay?: number }
  27. Custom Controls
  28. DelayStepper
  29. DEMO
  30. Interop
  31. Stepwise Migrations Reactive Form Signal Form
  32. DEMO
  33. Architecture, Concepts, Implementation Modern Angular 440 pages, PDF, EPUB Regular Free Updates! angular-book.com
  34. • Splitting Large Forms • Conditional Validation • Metadata • Null and Undefined • Custom Controls • Interop with Reactive Forms Conclusion
  35. [Social Media] Manfred Steyer [web] ANGULARarchitects.io Manfred Steyer @ Manfred Steyer Slides & Examples Remote Company Workshops and Consulting http://angulararchitects.io

Buchtipp

Modern Angular

Architecture, Concepts, Implementation: practical guidance for modern Angular – Signals, Signal Forms, the NgRx Signal Store, AI and architecture.

Mehr zum Buch: Modern Angular (öffnet in neuem Fenster)