canActivate()

in angular/src/app/app-guards/security.guard.ts [13:25]


  canActivate() {
    const identity = this.securityService.getIdentity();
    if (identity && identity.token) {
      // logged in so return true
      return true;
    }

    // not logged in so redirect to login page
    // this.router.navigate(['/login']);
    // return false;

    return true;
  }