Documentation ¶
Overview ¶
Package vuetemplate allows to serve vue.js apps over a go api. The abstraction works over different elements:
- JSType defines the different statements, which are used inside JS
- JSElement is a full JavaScript statement for example `var v1 = "val";`
- Vue is the definition of the vue object
- Component defines a vue component
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
Component is used for vuejs components
func NewComponent ¶
NewComponent creates a component and returns the pointer
type JSElement ¶
JSElement represents the different variable declarations of JS.
func NewJSElement ¶
type Vue ¶
type Vue struct { Template string // vue template also used inside components Data string Name string // just used inside router definition Props string // for handling values inside components Children string // used inside components Components string // used inside components Computed string Methods string Watch string BeforeMount string Mounted string BeforeUpdate string Updated string Path string // just used inside routes }
Vue defines all possible JS objects used with vue.js. There are not only the core elements availiable. Route and component properties are added here, too.
Click to show internal directories.
Click to hide internal directories.