Recently, I've been exploring the new features of Angular 2 final release, particularly the updated router functionality.
An interesting example showcasing the router in action can be found at this link: http://plnkr.co/edit/mXSjnUtN7CM6ZqtOicE2?p=preview
I'm curious to know if there is a way to keep the current module visible but hidden in the DOM while loading a new one on top. Consider a situation where a user is navigating from an Admin-type module to create some asset (like a user) in a Users module, and then returning to where they left off in the Admin module.
In this specific case, the user might be working within a deep-linked section of the Admin module, so it would be disruptive for them to lose their progress when switching modules.
Is there a solution for this requirement? From my experience so far, it seems like the modules loaded in the <router-outlet>
are removed completely from the DOM once a new module is loaded.
Thank you!