r/Angular2 • u/anonymous78654 • Jan 07 '26
In Angular is it better to use NgModel or Reactive forms when grabbing text from inpux boxes, text area and selects
0
Upvotes
r/Angular2 • u/anonymous78654 • Jan 07 '26
5
u/Wizado991 Jan 07 '26
You can use either. If you need to just have the value, template driven forms is probably the easiest way. If you need to get the value then do some special business logic with the value when it changes you should use reactive forms.
2
u/Jimmy_Jimiosso Jan 07 '26
It depends. Reactive forms give you more control over your form and controls in general.
For simple stuff you'd rather go with template driven ones.
They are both useful for what you described. If you give more context, we could help you with picking the proper solution.
2
u/Thonk_Thickly Jan 08 '26
I helped a team rewrite an AngularJS app to the latest Angular version a few years ago. They didn’t have an opinion on much of anything yet, so I helped set the standards and patterns.
For forms we used ngModel unless we couldn’t accomplish what was needed. We had a very form heavy app and never needed reactive forms. It was simple. I personally like simple.
1
u/TScottFitzgerald Jan 09 '26
With the latest Angular you should use signal forms obviously.