Is there a way to clear the memory of a previous module in my app that I won't be using after routing to a different location?
For instance, let's say my main Angular module is "WebApp" which has dependencies on modules like "catalogApp", "PaymentApp", and others. I'm looking for a way to remove the previous module when transitioning from one module to another.
So, is it possible to remove or delete a module?