NavigoRouterFactory

class NavigoRouterFactory(val root: String? = null, val useHash: Boolean = true, val strategy: Strategy = Strategy.ONE, val noMatchWarning: Boolean = false, val linksSelector: String? = null) : RouterFactory

A router factory for Navigo 8+ routing module.

Parameters

root

the root path of the application

useHash

whether to use hash based routing

strategy

a routing strategy

noMatchWarning

do not show warnings when there is no matching route

linksSelector

CSS links selector

Constructors

Link copied to clipboard
constructor(root: String? = null, useHash: Boolean = true, strategy: Strategy = Strategy.ONE, noMatchWarning: Boolean = false, linksSelector: String? = null)

Properties

Link copied to clipboard
val linksSelector: String? = null
Link copied to clipboard
val noMatchWarning: Boolean = false
Link copied to clipboard
val root: String? = null
Link copied to clipboard
Link copied to clipboard
val useHash: Boolean = true

Functions

Link copied to clipboard
open override fun getRouter(): KVRouter

Return current router.

Link copied to clipboard
open override fun initRouter()

Initialize new router.

Link copied to clipboard
open override fun shutdownRouter()

Shutdown current router.