Parent to Child via @Input

This is probably the most common and straightforward method of sharing data. It works by using the @Input() decorator to allow data to be passed via the template.

Parent Component

Child Component

Was this page helpful?