StringRoute

open class StringRoute(default: String) : Route<String>

StringRoute is a simple Route which serializes and deserializes nothing.

Parameters

default

String to use when no explicit window.location.hash was set before

Constructors

StringRoute
Link copied to clipboard
js
fun StringRoute(default: String)
String to use when no explicit window.location.

Functions

deserialize
Link copied to clipboard
js
open override fun deserialize(hash: String): String
Deserializes the window.location.
serialize
Link copied to clipboard
js
open override fun serialize(route: String): String
Serializes a given object of type T to String for setting it to the window.location.

Properties

default
Link copied to clipboard
js
open override val default: String
String to use when no explicit window.location.