Zum Inhalt springen

Vortrag

Signal Forms: Beyond the Basics

ngBaguette 2026von Manfred Steyer

Folien zum Vortrag (34)

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