Router

com.alecdorrington.laminarcomponents.Router
final class Router[R](parse: String => R, path: R => String)

The current route of a page, kept in step with the address bar and history. Change it only through navigate and redirect.

Type parameters

R

A route.

Value parameters

parse

The route a URL path names.

path

The path of a route's URL.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def redirect(to: R): Unit

Moves to a route in place of the current entry in the browser's history.

Moves to a route in place of the current entry in the browser's history.

Value parameters

to

The route.

Attributes

Concrete fields

val route: StrictSignal[R]

The route on display, followed for as long as the page is open.

The route on display, followed for as long as the page is open.

Attributes