package vue-jsoo

  1. Overview
  2. Docs

Module Vue_router.RouteSource

functor to create a route with a component with typecheck of input data

Parameters

module S : sig ... end

Signature

Sourcetype data = S.data
include Vue_component.Tables_S with type all = S.all
Sourcetype all = S.all
Sourceval methods_t : Mjs.any Mjs.table
Sourceval watch_t : (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any) Mjs.table
Sourceval add_method : string -> (all Mjs.t -> 'a) -> unit
Sourceval add_method0 : string -> (all Mjs.t -> 'a) -> unit
Sourceval add_method1 : string -> (all Mjs.t -> 'a -> 'b) -> unit
Sourceval add_method2 : string -> (all Mjs.t -> 'a -> 'b -> 'c) -> unit
Sourceval add_method3 : string -> (all Mjs.t -> 'a -> 'b -> 'c -> 'd) -> unit
Sourceval add_method4 : string -> (all Mjs.t -> 'a -> 'b -> 'c -> 'd -> 'e) -> unit
Sourceval add_watch : string -> (all Mjs.t -> 'a -> 'a -> 'b) -> unit
Sourceval add_computed : string -> (all Mjs.t -> 'a Mjs.optdef) -> unit
Sourceval add_2way_computed : string -> get:(all Mjs.t -> 'a Mjs.optdef) -> set:(all Mjs.t -> 'b -> unit) -> unit
Sourceval add_component : string -> ('a, 'b) Vue_component.Internal.component_arg Mjs.t -> unit
Sourceval merge_lists_component : ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> unit -> unit
include Tables_S
Sourceval routes_t : (Mjs.top, Mjs.top) route Mjs.t list ref
Sourceval add_route : ('a, 'b) route Mjs.t -> unit
Sourceval merge_routes : ?routes:(Mjs.top, Mjs.top) route Mjs.t list -> unit -> unit
Sourceval make : ?export:bool -> ?data:(all Mjs.t -> S.data Mjs.t) -> ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> ?children:(Mjs.top, Mjs.top) route Mjs.t list -> ?path:string -> ?hook:(Vue_nav.push_obj -> Vue_nav.push_obj -> all Vue_nav.next) -> unit -> (data, all) route Mjs.t

make the route combining previously added methods/watch/computed

Unsafe functions

Sourceval get : unit -> (data, all) route Mjs.t

unsafe reference to component object

OCaml

Innovation. Community. Security.