Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RouteConfig

Route configuration. This is an Object for which the properties are the ids of the route segments, and the values are either:

  • a string: the route path. May contain : for path parameters. May also contain ? and/or & for query string parameters.
  • an array: [path, nestedConfig] or [path, inheritArray, nestedConfig].
example

const routeConfig = {
  Home: "/",
  User: ["/user/:name?param1", {
    Profile: "/profile?param2&param3",
    Preferences: ["/preferences", ["name"]]
  }]
};

Hierarchy

  • RouteConfig

Indexable

[id: string]: any

Route configuration. This is an Object for which the properties are the ids of the route segments, and the values are either:

  • a string: the route path. May contain : for path parameters. May also contain ? and/or & for query string parameters.
  • an array: [path, nestedConfig] or [path, inheritArray, nestedConfig].

Generated using TypeDoc