Fully documented lesson at https://angularfirebase.com/lessons/sharing-data-between-angular-components-four-methods/
In this episode, I am going to show you four different ways to share data between Angular components.
Parent to Child the Input Decorator
When you declare a variable with the Input decorator in the child component, it allows that variable to be received from a parent template. In this case, we define a message variable in the parent, then use square brackets to pass the data to the child.
آی-ویدئو