Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Ankit kaushik
Ankit kaushik

Written by Ankit kaushik

Frontend Tech Lead, Angular Expert

Responses (1)

Write a response

The reason you're getting the error is because your parent is no longer the FormGroupDirective. It's the FormGroupName.
So, you should provide that instead in the child component (in this example: address.component.ts):
```
viewProviders: [{
provide…