Passing value to app.component.ts

i’m facing the same issue . but unfortunately there were no satisfactory solutions.
also saw that topic too, which says the same to make a service :
How to pass data to appcomponent page from other page

but i need some solution with app component so i don’t have to do major changes. or at least some demo example to do so.

i have a profile edit page where user can update his profile info .for example user edits user name now the API call updates the data and also i save the updated data to local storage. this local storage contains the updated name too, which i want to display on side menu and this menu is in app component.