title: Angular 2 Uncaught (in promise): TypeError: Cannot read property 'isActivated' of undefined
body: <p>If I return to the same routing path it show an error </p>
  
  <p>"Uncaught (in promise): TypeError: Cannot read property 'isActivated' of undefined".</p>
  
  <p>But not show at first time. can any one help me ?</p>
  
  <h1>    routing</h1>
  
  <pre class="lang-ts prettyprint-override"><code>const mainRoutes: Routes = [
      { path: '', pathMatch: 'full', redirectTo: '/home' },
      {
          path: 'home', loadChildren: './apps/home/home.module#HomeModule', canActivate: [AuthGuard],
          resolve: {
              crisis: NavigarionResolve
          }
      }
      { path: '**', component: PageNotFoundComponent }
  ];
  </code></pre>
  
  <h1>Component</h1>
  
  <pre class="lang-ts prettyprint-override"><code>import { Component, OnInit } from '@angular/core';
  import { Router } from '@angular/router';
  import { AuthService }            from '../main/service/auth.service';
  
  @Component({
    selector: 'home-app',
    templateUrl: 'apps/home/view/home.component.html',
    providers: [AuthService]
  })
  
  export class HomeComponent implements OnInit {
    loaded: boolean = false;
    title = 'Customer Management Home';
    slogan = 'Hi ...Home ';
    views: Object[] = [];
    constructor(private _authService: AuthService, private router: Router) {
      this.views = [
        {
          name: "My Account",
          description: "Edit my account information",
          icon: "assignment ind"
        },
        {
          name: "Potential dates",
          description: "Find your soulmate!",
          icon: "pets"
        }
      ];
  
    }
    logout() {
      this._authService.logout().then(() =&gt; {
        this.router.navigate(['/login']);
      });
    }
  
    ngOnInit() {
  
    }
  }
  </code></pre>
  
  <h1>Navigarion</h1>
  
  <pre><code> this.router.navigate(['/home']);
  </code></pre>