You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-5
Original file line number
Diff line number
Diff line change
@@ -261,8 +261,8 @@
261
261
|253|[Is it mandatory to use injectable on every service class?](#is-it-mandatory-to-use-injectable-on-every-service-class)|
262
262
|254|[What is an optional dependency?](#what-is-an-optional-dependency)|
263
263
|255|[What are the types of injector hierarchies?](#what-are-the-types-of-injector-hierarchies)|
264
-
|256|[](#)|
265
-
|257|[](#)|
264
+
|256|[What are dynamic forms?](#what-are-dynamic-forms)|
265
+
|257|[What are the differences between reactive forms and template driven forms?](#what-are-the-differences-between-reactive-forms-and-template-driven-forms)|
266
266
|258|[](#)|
267
267
|259|[](#)|
268
268
|260|[](#)|
@@ -3899,11 +3899,20 @@
3899
3899
3900
3900
**[⬆ Back to Top](#table-of-contents)**
3901
3901
3902
-
256. ### ?
3903
-
3902
+
256. ### What are dynamic forms?
3903
+
Dynamic forms is a pattern in which we build a form dynamically based on metadata that describes a business object model. You can create them based on reactive form API.
3904
3904
**[⬆ Back to Top](#table-of-contents)**
3905
3905
3906
-
257. ### ?
3906
+
257. ### What are the differences between reactive forms and template driven forms?
3907
+
Below are the main differences between reactive forms and template driven forms
3908
+
3909
+
| Feature | Reactive | Template-Driven |
3910
+
|---- |---- | --------- |
3911
+
| Form model setup | Created(FormControl instance) in component explicitly | Created by directives |
3912
+
| Data updates | Synchronous | Asynchronous |
3913
+
| Form custom validation | Defined as Functions | Defined as Directives |
3914
+
| Mutability | Immutable(by always returning new value for FormControl instance) | Mutable(Property always modified to new value) |
3915
+
| Scalability | More scalable using low-level APIs | Less scalable using due to abstraction on APIs|
0 commit comments