package vue-jsoo
Binding of Vue_js
Install
Dune Dependency
Authors
Maintainers
Sources
archive?sha=2a338bcccd3cdd4c5b3c488f84b954baa976840e
md5=d8095fc66a530f25abb2c0b994e2e720
sha512=0068240dff39fb5e08a61bb36540b6fffa5d015abb7b4f5eb6a00425f8d860d7f73493d63779b6cc269680192cdab4c3dc662c5631ae1e195f6f58e92815f4e2
doc/vue-jsoo.router/Vue_router/index.html
Module Vue_router
Source
Create router object
redirect to path or to named route
Source
type push_obj = {
pu_path : string option;
pu_name : string option;
params : (string * string) list option;
query : (string * string) list option;
}
route argument object for the router methods
props argument can be a bool, and object or a function
router class type
Call router methods
register hook before each navigation
register hook before each navigation confirmation
register hook after each navigation
Source
type ('a, 'b) route_ml = ('a, 'b) Internal.route_ml = {
path : string;
component : ('a, 'b) Vue_component.component_args option;
children : (Mjs.top, Mjs.top) Internal.route Mjs.t list option;
name : string option;
components : ('a, 'b) Vue_component.component_args Mjs.table_cons option;
redirect : redirect option;
alias : string option;
props : props option;
hook : (push_obj -> push_obj -> (unit -> unit) -> unit) option;
}
route object
make router from route list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>