Class: SwimWay

SwimWay(routingMethodopt)

This is the basic router for the Shark environment.
Fun Fuct: SwimWay is a name given by some researcher to a sort of route followd in the ocean by a great amount of Sharks.

Constructor

new SwimWay(routingMethodopt)

Parameters:
Name Type Attributes Default Description
routingMethod string <optional>
pathname The routing method used for this router: value could be one of pathname, url or hash.
Source:

Methods

getRequestedViewFromLocation() → {string}

Parse the document.location properties and return the requested View in the URL.
Source:
Returns:
requestedView - The name of the View extracted from the current URL.
Type
string

setURLSearchParams(urlSearchParams)

Set current URLSearchParams without creating a new state in browser's history.
Parameters:
Name Type Default Description
urlSearchParams strin | object | URLSearchParams null Could be a string, an object or a URLSearchParams instance.
Source: