Class: urlParamAdapter

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01


.Router. urlParamAdapter

Version:
  • 7.1.0
Since:
  • 1.1.0
Module:
  • ojrouter

Module usage

See JET Module Loading for an overview of module usage within JET.

Typescript Import Format
//To import this class, use the format below.
import {urlParamAdapter} from "ojs/ojrouter";

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

Description

Url adapter used by the oj.Router to manage URL in the form of /index.html?root=book&book=chapter2. This adapter can be used if the urlPathAdapter doesn't meet the application's needs.
This adapter is well-suited for single-page applications whose entry point is always a single document, i.e., "index.html" which restores its router state from additional parameters. The router state is encoded as URL parameters and then restored after the page is loaded. This is ideal for applications which cannot handle multiple entry points, as recommended by urlPathAdapter.
There are two available URL adapters, this one and the urlPathAdapter.
To change the URL adapter, use the urlAdapter property.