Angular
Intro to Reactive Forms in Angular - Building a Form with Groups

Solution: FormGroup Basics

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

https://stackblitz.com/fork/rxngforms-formgroupbasic-solution

Solution
1. In the applicationForm initialization, change the = to : and remove semicolons. Add a comma at the end of line 24. In this way you're giving the FormGroup constructor an object with key/values.
2. In the template, change the directives of both inputs from [formControl] to formControlName since they now are wrapped in the applicationForm FormGroup.

 

I finished! On to the next chapter