Skip to content

Commit cebe443

Browse files
committed
Add form questions
1 parent 6d7faad commit cebe443

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@
261261
|253| [Is it mandatory to use injectable on every service class?](#is-it-mandatory-to-use-injectable-on-every-service-class)|
262262
|254| [What is an optional dependency?](#what-is-an-optional-dependency)|
263263
|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)|
266266
|258| [](#)|
267267
|259| [](#)|
268268
|260| [](#)|
@@ -3899,11 +3899,20 @@
38993899
39003900
**[⬆ Back to Top](#table-of-contents)**
39013901
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.
39043904
**[⬆ Back to Top](#table-of-contents)**
39053905
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|
39073916
39083917
**[⬆ Back to Top](#table-of-contents)**
39093918

0 commit comments

Comments
 (0)