Print data from app component to home component on console

Hi, I have app component and home Component . I have fcm.onNotification() in app component so on the notification received I need to send that notification message to home component and need to print in console, please help me.

I would use a service that is injected in both places for this purpose.