but can you please tell a way to do this with app.component ? I have same problem and i’m afraid that changing it to service will ran into trouble. Or at least give some links to do so.
i have a scenario where user can update his profile info .for example user edits user name now the API call updates the data and also i save that updated data to local storage. this local storage contains the updated name too now, which i want to display on side menu and this menu is in app component.
any help how can i do that?
i tried to call the local storage in app component but it seems like that it only loads once.