I have the following setup: Layout and Routes folders, Layout consists of sidebar where I am displaying user image, and Routes consists of all the pages I am displaying in router outlet.
I have a page inside Routes folder where I am uploading new image, and after submitting that form, I want to show the new image in my sidebar at the same moment. For now, it displays the image after I reload the page but thats not the behavior I need.
I even tried creating a component that holds that image in shared folder, and displaying 2 images there, one with current user image (or default) and the other if user uploads new image, but I couldn't make it work.
Anyone has any suggestion/example on what to try?
Can't copy the code since I have no idea what to do, the idea so far is somehow to reload the sidebar component only after submit. Fishing for ideas here.
How to trigger the Event that will change my image immediately when I submit form with new image?