Navigation

object Navigation

Provides simple routing based on url hash (anchor), such as: http://mysite.com/#page1

class Object
trait Matchable
class Any

Type members

Classlikes

enum Result

Value members

Concrete methods

def getLocationHash[F[_] : Async, Msg](resultToMessage: Result => Msg): Cmd[F, Msg]

Fetch the current location hash

Fetch the current location hash

def onLocationHashChange[F[_] : Async, Msg](resultToMessage: HashChange => Msg): Sub[F, Msg]

Subscribes to changes in the url hash and reports when they occur

Subscribes to changes in the url hash and reports when they occur

def setLocationHash[F[_] : Async](newHash: String): Cmd[F, Nothing]

Set the location hash, the change can then be detected using the onLocationHashChange subscription

Set the location hash, the change can then be detected using the onLocationHashChange subscription