Hi viewers, In this article, you will learn the difference between Reactive forms and Template-driven forms
Features | Reactive Forms | Template Driven Forms |
Form model setup | Created(FormControl instance) in component explicitly | Created by directives |
Data updates | Synchronous | Asynchronous |
Form custom validation | Defined as Functions | Defined as Directives |
Testing | No interaction with the change detection cycle | Need knowledge of the change detection process |
Mutability | Immutable(by always returning new value for FormControl instance) | Mutable(Property always modified to the new value) |
Mutability | More scalable using low-level APIs | Less scalable use due to abstraction on APIs |