RouterConfig
Pass a RouterConfig object to the createRouter() API to create a router for specific routes.
| Property | Type | Required/Optional | Description |
|---|---|---|---|
routes | Array | Optional | An array of route definitions. If you don't specify a RouteDefinition array, the default value is an empty array. If you don't specify a value for RouterConfig.routes, the router can't match any locations. |
basePath | String | Optional | A path prefix applied to all URIs for the router. If you don't specify a base path, the default value is "". |
caseSensitive | Boolean | Optional | If true, URIs are processed case sensitively. The default value is false. |
i18n | Array | Optional | An i18n config that may affect the path prefix applied to all URIs. The default value is {locale: 'en-US', defaultLocale: 'en-US'}. |