Recipe R001: Passing data to a nested component
There are three way to do communication of data and event between components...
- using @input and @output decorators
- uisng input and output property in @componenet decorators
- using # reference variable (simplest way)