Route

interface Route<T>

A Route is a abstraction for routes which needed for routing

Parameters

T

type to de-/serialize from

Functions

deserialize
Link copied to clipboard
js
abstract fun deserialize(hash: String): T
Deserializes the window.location.
equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
serialize
Link copied to clipboard
js
abstract fun serialize(route: T): String
Serializes a given object of type T to String for setting it to the window.location.
toString
Link copied to clipboard
js
open fun toString(): String

Properties

default
Link copied to clipboard
js
abstract val default: T
Gives the default value when initialising the routing

Inheritors

StringRoute
Link copied to clipboard
MapRoute
Link copied to clipboard