angular.io
angular.io copied to clipboard
Correct typo in Reactive Forms page
In "Create a reactive forms component" chapter, after the phrase
Next, create an exported
HeroDetailComponentclass with aFormControl.
follows the example with HeroDetailComponent1 class. HeroDetailComponent1 should be HeroDetailComponent.
There are many cases in there. Can you take a look @kapunahelewong ?
A Similar typo can be found after the phrase
In the class, wrap the FormControl in a FormGroup called heroForm as follows:
the example uses HeroDetailComponent2 instead of HeroDetailComponent.
Hi @thefliik thanks for the heads up. The numbers are there intentionally as they are part of the live example that contains all the demos, so as you work through each step, the demo has the relevant code in component 1, 2, 3, etc. Does that make sense? If not, let me know and I can explain in more detail.