Interface: Route

Oracle® JavaScript Extension Toolkit (JET)
11.0.0

F37993-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 {[key: string]: any} = {[key: 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