vleam/vue_router

Types

pub type RouteLocationNormalizedLoaded
pub type Router

Functions

pub fn back(router: Router) -> Nil
pub fn current_route(
  router: Router,
) -> RouteLocationNormalizedLoaded
pub fn forward(router: Router) -> Nil
pub fn full_path(route: RouteLocationNormalizedLoaded) -> String
pub fn go(router: Router, delta: Int) -> Nil
pub fn hash(route: RouteLocationNormalizedLoaded) -> String
pub fn listening(router: Router) -> Bool
pub fn on_before_route_leave(handler: fn() -> Nil) -> Nil
pub fn on_before_route_update(handler: fn() -> Nil) -> Nil
pub fn params(
  route: RouteLocationNormalizedLoaded,
) -> Dict(String, String)
pub fn path(route: RouteLocationNormalizedLoaded) -> String
pub fn push(router: Router, to: String) -> Nil
pub fn query(
  route: RouteLocationNormalizedLoaded,
) -> Dict(String, Option(String))
pub fn replace(router: Router, to: String) -> Nil
pub fn use_route() -> RouteLocationNormalizedLoaded
pub fn use_router() -> Router
Search Document