Skip to content

Example Angular app which demonstrates how to use child components in an reactive form context.

Notifications You must be signed in to change notification settings

ofhouse/angular-forms-child-components

Repository files navigation

Example Angular app

This app is an example how to use child components in Angular reactive forms.

You can also checkout the code online in CodeSandbox:

View it on CodeSandbox

Idea

The idea is to to create a formGroup in the main view and pass it to it's child components. The child components then create a new form by themselves and initialize it with the passed formGroup input value from the main view.

To learn more about this technique you can checkout this article by Josh Hicks:

Using Child Components in Angular Forms

Author


Felix Haus

WebsiteTwitter

About

Example Angular app which demonstrates how to use child components in an reactive form context.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published