Dynamic menu on app.component.ts with home.ts

Hello, I created an app using the image command to use sidemenu.


On the home page there is a button, what I want is that every time I click the button the menu increases an item (it can be with any content)

How a method created in home.ts can pass information to the app.component.ts?


Via a mutually injected service provider.

Mutually injected? Do you have any examples for me to understand?