Example #1
0
  getMatch(): Route<T, any> | null {
    const path = LocationService.getPath();

    for (const factory of this.routeFactories_) {
      const route = factory.createFromPath(path);
      if (route !== null) {
        return route;
      }
    }

    return null;
  }
Example #2
0
 getRoute<CR>(factory: AbstractRouteFactory<T, any, CR, any>): Route<T, CR> | null {
   return factory.createFromPath(LocationService.getPath());
 }