title: Get route params in CanActivate method Angular 2
body: <p>I am currently using <code>LazyLoading</code> to load the module but I am not able to access the router params when I reload the page.</p>
  
  <p>The router params is empty when I reload, but I can access within the component but not the <code>Guard</code>.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): any {
     debugger;
     console.log(route.params); // empty when reloading
     this.router.events.subscribe((event) =&gt; {
        if (event instanceof ActivationStart) {
            console.log(event);
        }
     });
  }
  </code></pre>
  
  <p>The above code does not log any <code>console events</code> because the <code>routing does not happen</code></p>
  
  <p>How can I access the route params within <code>CanActivate</code> when I reload the page? Is there any hack so that I can access them?</p>