new Router(routesTranslations)
Router.js, line 33
| Name | Type | Description |
|---|---|---|
routesTranslations |
RoutesTranslations |
Methods
-
_addInternalRoute(routeKey, route)
Router.js, line 65 -
Name Type Description routeKeystring routeRouterRoute -
_createRoute(completePath, lang, route, match, groupCount, namedParams){Route}
Router.js, line 164 -
Creates a new Route result
Name Type Description completePathstring langstring routeRouterRoute matchArray groupCountint namedParamsMap Returns:
Type Description Route route -
_findRoute(routes, completePath, path, lang, namedParams){RouterRoute}
Router.js, line 92 -
Name Type Description routesArray completePathstring pathstring langstring namedParamsMap Returns:
Type Description RouterRoute route the route or undefined if none found -
addRoute(routeKey, route)
Router.js, line 53 -
Name Type Description routeKeystring routeRouterRouteCommon -
find(path, lang){Route}
Router.js, line 77 -
Name Type Description pathstring langstring optional Returns:
Type Description Route -
get(key){Route}
Router.js, line 45 -
Get a Route by its key
Name Type Description keystring Returns:
Type Description Route -
urlGenerator(lang, routeKey, params){string}
Router.js, line 229 -
Create a link
Name Type Description langstring routeKeystring params.extensionstring optional params.queryStringstring optional params.hashstring optional paramsReturns:
Type Description string