Case: I have two components which are upload dialog and progressbar. I have to share list of files to both components.
What I did is: I created a service and injected into both the components and used.
Problem: Once I finished all the process of upload and trying again to upload new files but the service properties are not reset even I destroyed all the components( upload dialog and progressbar ). I tried to destroy the service but it didn’t work out. I know that I shouldn’t use the service for this purpose but I don’t know the alternative.
So, I’m posting here to get the perfect solution.
Thanks in advance!