Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are the differences between reactive forms and template driven forms?
Home
Angular
What are the differences between reactive forms and template driven forms?
0
votes
asked
Sep 24, 2023
in
Angular
by
AdilsonLima
What are the differences between reactive forms and template driven forms?
angularjs-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 24, 2023
by
AdilsonLima
Below are the main differences between reactive forms and template driven forms
Feature
Reactive
Template-Driven
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 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 new value)
Scalability
More scalable using low-level APIs
Less scalable using due to abstraction on APIs
Related questions
0
votes
Q: What are template driven forms?
asked
Sep 24, 2023
in
Angular
by
AdilsonLima
angularjs-interview-questions-answers
0
votes
Q: What are reactive forms in Angularjs?
asked
Sep 24, 2023
in
Angular
by
AdilsonLima
angularjs-interview-questions-answers
0
votes
Q: Where are model-driven forms built?
asked
Dec 10, 2023
in
Angular
by
DavidAnderson
angularjs-interview-questions-answers
0
votes
Q: Angular Template-driven Forms
asked
Sep 13, 2019
in
Angular
by
ivor2019
#angular-bootstrapping
#angular-static-template
#angularjs-templates
#angular-components
#angular-directory-and-file-organization
#angular-filtering-repeaters
#angular-two-way-data-binding
#angular-xhr-&-dependency-injection
##angular-routing-and-multiple-views
#angular-templating
#angular-customs-filters
#angular-event-handler
#angular-rest
#angular-custom-services
#angular-animations
0
votes
Q: What are the differences between cookie, local storage and session storage in angularJS?
asked
Sep 29, 2023
in
Angular
by
JackTerrance
angularjs-interview-questions-answers
0
votes
Q: What are dynamic forms in Angular Js?
asked
Sep 24, 2023
in
Angular
by
AdilsonLima
angularjs-interview-questions-answers
0
votes
Q: What are the four phases of template translation?
asked
Sep 19, 2023
in
Angular
by
DavidAnderson
angularjs-interview-questions-answers
0
votes
Q: How do you verify the model changes in forms?
asked
Sep 24, 2023
in
Angular
by
AdilsonLima
angularjs-interview-questions-answers
0
votes
Q: Directive that can be used to include HTML fragments from other files into the view of HTML template is _________
asked
Dec 15, 2023
in
Angular
by
AdilsonLima
angularjs-interview-questions-answers
0
votes
Q: Which metadata properly allows you to specify a file that contains the template contents?
asked
Dec 13, 2023
in
Angular
by
DavidAnderson
angularjs-interview-questions-answers
...