Interface: Route

Oracle® JavaScript Extension Toolkit (JET)
17.1.0

G12196-01

Module:
  • ojcorerouter

QuickNav

Fields

Description

A Route defines the path and optional parameters to which a router will navigate. The Route.path must match a route config which was passed to the router via the CoreRouter constructor or CoreRouter#createChildRouter.


Usage

Signature:

interface CoreRouter.Route<P extends Record<string, any> = Record<string, any>>

Generic Parameters
ParameterDescription
PParameters object for the router state
Typescript Import Format
//To use this interface, import as below.
import CoreRouter= require("ojs/ojcorerouter");

//To access this interface in your code,
let myVariable: CoreRouter.Route;

For additional information visit:


A Route defines the path and optional parameters to which a router will navigate. The Route.path must match a route config which was passed to the router via the CoreRouter constructor or CoreRouter#createChildRouter.

Fields

params :P

The path of the route

path :string

The path of the route