RouterConfig

Pass a RouterConfig object to the createRouter() API to create a router for specific routes.

PropertyTypeRequired/OptionalDescription
routesArrayOptionalAn 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.
basePathStringOptionalA path prefix applied to all URIs for the router. If you don't specify a base path, the default value is "".
caseSensitiveBooleanOptionalIf true, URIs are processed case sensitively. The default value is false.
i18nArrayOptionalAn i18n config that may affect the path prefix applied to all URIs. The default value is {locale: 'en-US', defaultLocale: 'en-US'}.