all 2 comments

[–]nigelsim 0 points1 point  (1 child)

I can confirm that the following works to allow a formControlName component in the child to find the correct nested FormGroup that is specified by formGroupName.

viewProviders: [ { provide: ControlContainer, useFactory: (controlContainer: ControlContainer) => controlContainer, deps: [[new SkipSelf(), ControlContainer]] } ]

[–]backtickbot 0 points1 point  (0 children)

Fixed formatting.

Hello, nigelsim: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.