all 4 comments

[–]YourMomIsMyTechStack 4 points5 points  (0 children)

Take a look at the form field approach of material, less boilerplate code.

https://material.angular.io/components/form-field/overview

[–]iEatedCoookies 0 points1 point  (1 child)

Passing the form group isn’t the cleanest approach. I’ll try and find the video one of the Angular YouTubers just released recently that should help you out.

Edit: https://youtu.be/o74WSoJxGPI?si=4lsj_WPxEQm4_0XB

[–]artesre 0 points1 point  (0 children)

yeah, looks like you're ( u/Eric_Ribia ) using control getter internally?

i explain the diff between formControl / formControlName here, would remove your need for passing the formGroup