Categorygithub.com/rogandawes/hvue
modulepackage
0.0.0-20181029154725-6c76eb2e8ae9
Repository: https://github.com/rogandawes/hvue.git
Documentation: pkg.go.dev

# README

Intro

hvue is a GopherJS wrapper for the Vue Javascript framework.

Install

go get github.com/huckridgesw/hvue

Examples & Demos

Overview

Generally speaking, the examples follow the examples in the Vue guide.

01-introduction has examples from the Vue Introduction page.

02-lifecycle demos Vue lifecycle hooks but does not correspond to any specific example on that page.

03-computed-basic and 04-computed-with-setter have examples from Computed Properties and Watchers.

And so on. Links are in the code.

Running the examples

cd /path/to/github.com/huckridgesw/hvue
gopherjs serve github.com/huckridgesw/hvue

and then

GoDoc

http://godoc.org/github.com/HuckRidgeSW/hvue

# Packages

No description provided by the author

# Functions

Activated lets you define a hook for the activated lifecycle action.
BeforeCreate lets you define a hook for the beforeCreate lifecycle action.
BeforeDestroy lets you define a hook for the beforeDestroy lifecycle action.
BeforeMount lets you define a hook for the beforeMount lifecycle action.
BeforeUpdate lets you define a hook for the beforeUpdate lifecycle action.
Bind specifies the js{bind} directive hook function.
Cloak encapsulates a Go value within a JavaScript object.
Component is used in NewVM to define a local component, within the scope of another instance/component.
ComponentUpdated specifies the js{componentUpdated} directive hook function.
Computed defines name as a computed property.
ComputedWithGetSet defines name as a computed property with explicit get & set.
Created lets you define a hook for the created lifecycle action.
Data sets a single data field.
DataFunc defines a function that returns a new data object.
DataS sets the struct `value` as the entire contents of the vm's data field.
Deactivated lets you define a hook for the deactivated lifecycle action.
Default gives the default for a prop.
DefaultFunc sets a function that returns the default for a prop.
Delete is a wrapper for js{Vue.delete}.
Destroyed lets you define a hook for the destroyed lifecycle action.
El sets the vm's el slot.
untested.
Inserted specifies the js{inserted} directive hook function.
Method adds a single function as a "method" on a vm.
MethodsOf sets up vm.methods with the exported methods of the type that t is an instance of.
Mounted lets you define a hook for the mounted lifecycle action.
NewArray is a utility function for creating a new JS array.
NewComponent defines a new Vue component.
NewDirective creates a new directive.
NewObject is a utility function for creating a new *js.Object.
NewT is an attempt at making GopherJS struct initialization easier and more Go-like.
NewVM returns a new vm, analogous to Javascript `new Vue(...)`.
PropObj defines a complex prop slot called `name`, configured with Types, Default, DefaultFunc, and Validator.
Props defines one or more simple prop slots.
Push appends any to the end of o, in place.
Set is a wrapper for js{Vue.set}.
Short allows you to use the "function shorthand" style of directive definition, when you want the same behavior on bind and update, but don't care about the other hooks.
Store enables the Vuex store option, as described here: https://vuex.vuejs.org/guide/state.html.
Template defines a template for a component.
Types configures the allowed types for a prop.
Unbind specifies the js{unbind} directive hook function.
Uncloak is the inverse of Cloak.
Update specifies the js{update} directive hook function.
Updated lets you define a hook for the updated lifecycle action.
Validator functions generate warnings in the JS console if using the vue.js development build.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Required specifies that the prop is required.

# Structs

Config is the config object for NewVM.
Directive wraps a js{Vue.directive} object.
DirectiveBinding wraps the js{binding} slot of the directive hook argument.
DirectiveConfig is the config object for configuring a directive.
Event wraps the event object sent to v-on event handlers.
PropConfig is the config object for Props.
VM wraps a js Vue object.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author