package vue-jsoo

  1. Overview
  2. Docs

Module Vue_jsSource

Sourcetype 'a vue = 'a Mjs.t
Sourcemodule Make (S : sig ... end) : sig ... end

Functor to create a vue with typechek of input data

Sourceval make : ?computed:('all Mjs.t -> Mjs.any Mjs.optdef) Mjs.table_cons -> ?watch:('all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any) Mjs.table_cons -> ?methods:Mjs.any Mjs.table_cons -> ?data:'data Mjs.t -> ?components: (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t Mjs.table_cons -> ?router:Vue_router.router -> ?store:Mjs.top Vuex.store -> string -> 'all vue

generic maker

Sourceval get_prop : 'a vue -> string -> 'b

get a $ prop element of the vue

Sourceval get_ref : 'a vue -> string -> 'b

get an element of $ref

Sourceval get_router : 'a vue -> Vue_router.router

get the router of the vue

Sourceval get_store : 'a vue -> 'b Vuex.store

get the store of the vue

Sourceval get_route : 'a vue -> ('b, 'c) Vue_router.Internal.route Mjs.t

get the current route

Sourcemodule SPA (S : sig ... end) : sig ... end

SPA Functor

Sourcemodule Root (S : sig ... end) : sig ... end

Root Functor