Split an Angular Reactive Form model into child components
Code Shots With Profanis
0:00 / 0:00
Split an Angular Reactive Form model into child components
36 019 просмотров · 5 лет назад
Code Shots With Profanis
8,62 тыс. подписчиков
36 019 просмотров · 5 лет назад
In this video, we will see how to split a big Angular Reactive Form model into child components.
Splitting a big component into several components increases maintainability.
The class type of the [formGroup] directive is FormGroupDirective. When a parent element is bound with a directive, the children of this element can inject the class type of the directive and use the created instance. In this video, each child component uses the FormGroupDirective of the parent component.
For more in-depth info, please check this link https://blog.profanis.me/blog/reactiv...
Code: https://github.com/profanis/codeShots...
✨✨
Interesting in learning more about Reactive Forms? Check out my book for more in-depth info and explanation https://www.amazon.com/Mastering-Angu...
✨✨
#angular #ReactiveForms #formmodel #form