I have referred this link to implement router reuse in my angular5 project that has lazyloading : Angular2 doesn't work Custom Reuse Strategy with Lazy module loading i.e. with data attribute having a custom key in the route. This works fine. However, when I log out from my site and go back to that page, the data is unchanged and user appears logged in.
i refereed this : How to implement RouteReuseStrategy shouldDetach for specific routes in Angular 2 i dnt want to save the state after user logs in or out at login on logout I tried clearing the handle by creating an instance of the routing.ts class and calling the storedRouteHandles.clear() method, but it doesn't get cleared.
What needs to be done?