Slide 1

Slide 1 text

Komplexe und dynamische Formulare mit Angular Webinar Max Schulte @MaxOSchulte Engineer / Consultant

Slide 2

Slide 2 text

Komplexe und dynamische Formulare mit Angular Webinar

Slide 3

Slide 3 text

What to expect § Form nesting concepts § Angular API integration (Routing, DI) § Architecture § Demo § Live coding And what not § Persisting § API Management § Deep-dive typing § Complete stepper guide Webinar Komplexe und dynamische Formulare mit Angular

Slide 4

Slide 4 text

Webinar Komplexe und dynamische Formulare mit Angular

Slide 5

Slide 5 text

Form Control “Tracks the value and validation status of an individual form control.” Angular’s form approach in a nutshell Form Control (Inputs, etc.) Webinar Komplexe und dynamische Formulare mit Angular

Slide 6

Slide 6 text

Control Value Accessor (CVA) “A base class that all FormControl-based directives extend. It binds a FormControl object to a DOM element.” Angular’s form approach in a nutshell CVA Form Control (Inputs, Components) Webinar Komplexe und dynamische Formulare mit Angular

Slide 7

Slide 7 text

Control Container “A base class for directives that contain multiple registered instances of NgControl. Only used by the forms module.” § NgForm / FormGroup / FormArray Angular’s form approach in a nutshell Sub Form? Form Control (Inputs, Components) Control Container (Groupes, Arrays, Reactive Forms, Template Driven) Form Control (Inputs, Components) … Webinar Komplexe und dynamische Formulare mit Angular

Slide 8

Slide 8 text

Template driven and reactive forms https://angular.io/guide/forms-overview Webinar Komplexe und dynamische Formulare mit Angular

Slide 9

Slide 9 text

Requirements Max’s forms solution matrix § Dynamic § Extendable § Reusable § 0-N array objects § Validatable § My summary ✅ ✅ foundation ✅ ✅ ✅ “easy” ✅ ✅ ✅ ✅ ✅ “hard” Event-driven CVA Template driven Reactive Webinar Komplexe und dynamische Formulare mit Angular + C ross-Validation + Dependency Injection

Slide 10

Slide 10 text

CODE Webinar Komplexe und dynamische Formulare mit Angular

Slide 11

Slide 11 text

§ Loose connection § Provide config or extend § Forms across routing Dependency Injection Webinar Komplexe und dynamische Formulare mit Angular

Slide 12

Slide 12 text

§ Constraints § Cross-Field dependencies § Group validation Cross-Validation Webinar Komplexe und dynamische Formulare mit Angular

Slide 13

Slide 13 text

Recap Form Control (Inputs, Components) Control Container (Groupes, Arrays, Reactive Forms, Template Driven) Form Control (Inputs, Components) … Webinar Komplexe und dynamische Formulare mit Angular CONTAINER A

Slide 14

Slide 14 text

Recap Webinar Komplexe und dynamische Formulare mit Angular Form Control (Inputs, Components) Control Container (Groupes, Arrays, Reactive Forms, Template Driven) Form Control (Inputs, Components) … CONTAINER A Form Control (Inputs, Components) Control Container (Groupes, Arrays, Reactive Forms, Template Driven) Form Control (Inputs, Components) … CONTAINER B

Slide 15

Slide 15 text

Control Container Recap § Dependency injection § Cross valdiation Webinar Komplexe und dynamische Formulare mit Angular Form Control (Inputs, Components) Control Container (Groupes, Arrays, Reactive Forms, Template Driven) Form Control (Inputs, Components) … CONTAINER A Form Control (Inputs, Components) Control Container (Groupes, Arrays, Reactive Forms, Template Driven) Form Control (Inputs, Components) … CONTAINER B

Slide 16

Slide 16 text

https://www.thinktecture.com/de/max-schulte Max Schulte @MaxOSchulte Engineer / Consultant Vielen Dank