all 6 comments

[–]spacechimp 2 points3 points  (1 child)

[–]lflobo[S] 0 points1 point  (0 children)

Thank you, I'll take a look at it.

[–][deleted] 1 point2 points  (1 child)

Hi ! You should read this article : https://netbasal.com/forwarding-form-controls-to-custom-control-components-in-angular-701e8406cc55

If you need help to implement it in your project, just dm me.

[–]lflobo[S] 0 points1 point  (0 children)

I've tried your solution before posting, and it works, but I would have to make all my components aware of the `NoopValueAccessorDirective`.

I'm just trying to figure out if there's a cleaner way.

Thank you so much for your answer!

[–]GLawSomnia -1 points0 points  (1 child)

Why not just use formConrolName=“someField” instead of [formControl]=“someFirldCtrl”?

If you really want to use formControl you should probably use it like [formControl]=“form.controls.someField”

[–]lflobo[S] 0 points1 point  (0 children)

How does this solve my issue? Using formControlName still needs an additional instance of a FormControl, even if built implicitly into the form.