title: Angular custom reuse strategy reload that component
body: <p>There's a problem with Custom Reuse Strategy I've been working all around and I can't see any solution. Maybe one of yours is able to help me.</p>
  
  <p>So. I implemeted to my application Custom Reuse Strategy. It works just fine, additionally I added a list of adressess that I don't want to be stored. Here's the code :</p>
  
  <pre><code>import {RouteReuseStrategy, DetachedRouteHandle, ActivatedRouteSnapshot} from "@angular/router";
  
  export class CustomRoutingReuse implements RouteReuseStrategy{
  handlers: {[key: string]: DetachedRouteHandle} = {};
  private ignoredRoutes : String[] = [
      'module_one/:id',
      'module_one/:id/mod',
      'module_one/:id/something_else',
  ];
  
  shouldDetach(route: ActivatedRouteSnapshot): boolean {
      //console.debug('CustomReuseStrategy:shouldDetach', route);
      if(this.ignoredRoutes.indexOf(route.routeConfig.path) &gt; -1){
          return false;
      }else {
          return true;
      }
  }
  
  store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void {
      console.debug('CustomReuseStrategy:store', route, handle);
      this.handlers[route.routeConfig.path] = handle;
  }
  
  shouldAttach(route: ActivatedRouteSnapshot): boolean {
      console.debug('CustomReuseStrategy:shouldAttach', route);
      return !!route.routeConfig &amp;&amp; !!this.handlers[route.routeConfig.path];
  }
  
  retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle {
      console.debug('CustomReuseStrategy:retrieve', route);
      if (!route.routeConfig) return null;
      return this.handlers[route.routeConfig.path];
  }
  
  shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {
      console.debug('CustomReuseStrategy:shouldReuseRoute', future, curr);
      return future.routeConfig === curr.routeConfig;
  }
  </code></pre>
  
  <p>} </p>
  
  <p>And now just imagine. First route on the list : </p>
  
  <pre><code>module_one/:id
  </code></pre>
  
  <p>Shows me details of something. And the second one :</p>
  
  <pre><code>module_one/:id/mod
  </code></pre>
  
  <p>allows me to change some values of the details from first route, then send them to backend and do some insert to DB.</p>
  
  <p>And now... I don't want first route in there. It's a component that handles inside 5 more. And when it's remembered, after changing value and coming back to it, the value still remains, because the whole component was remembered.</p>
  
  <p>It's a little bit messy, I know. Here is what I'm looking for : </p>
  
  <ul>
  <li><p>I want to make a list in customReuseStrategy like : </p>
  
  <pre><code>private ignoredComponents : String[] = [
  'myModuleOneComponent'];
  </code></pre>
  
  <p>And detach component by it's name.</p></li>
  <li><p>or I need a way to tell component to reload itself or just do my instructions after coming back to it, when it's stored.</p></li>
  </ul>