message: added can navigate to route
diff: @@ -107,7 +107,7 @@ export interface AuthorizedGuardRouteData {
  name?: string;
  }
  -export class dummyRoute extends ActivatedRouteSnapshot {
  +class dummyRoute extends ActivatedRouteSnapshot {
  constructor() {
  super();
  @@ -120,3 +120,18 @@ export interface AuthorizedGuardRoute extends Route {
  name?: string;
  };
  }
  +export function canNavigateToRoute(route: Route) {
  + if (!route.canActivate)
  + return true;
  + for (let guard of route.canActivate) {
  + let g = this.injector.get(guard) as CanActivate;
  + if (g && g.canActivate) {
  + var r = new dummyRoute();
  + r.routeConfig = route;
  + let canActivate = g.canActivate(r, undefined);
  + if (!canActivate)
  + return false;
  + }
  + }
  + return true;
  +}
  \ No newline at end of file
  