Angular Cheat Sheet (@Input, @Output, #Local_Variable, @ViewChild, @ContentChild): Interactions between components

When you need to pass data from Parent to Child:

When you need to pass data from Child to Parent:

When you need to link Child’s method at Parent’s template:

When you need to call Child’s method from Parent’s method:

When you need to pass another component from Parent’s template to Child’s method:

Leave a Reply

Your email address will not be published. Required fields are marked *