The ask of this question is to understand how we can allow the communication between 2 components in Angualr, following are situaution:
There are 4 different ways. You can read about them here: https://fireship.io/lessons/sharing-data-between-angular-components-four-methods/