package
0.0.0-20160323153452-958a0a0266f1
Repository: https://github.com/archs/js.git
Documentation: pkg.go.dev
# README
gopherjs bindings of vue.js
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
struct literal not workable yet, using js.M to do initialization Example: vm := vue.New(js.M{ "el": "#demo", "data": js.M{ "title": "todos", "todos": []js.M{ js.M{ "done": true, "content": "Learn JavaScript", }, js.M{ "done": false, "content": "Learn Vue.js", }, }, }, "directives": js.M{ "showdone": func(v js.Object) { println(v) println("this.expression:", js.This.Get("expression")) }, }, "filters": js.M{ "testf": func(v js.Object) js.Object { println("testf:", v, js.This.Get("title")) return v }, }, "created": func() { js.This.Call("$on", "msg", func(msg interface{}) { println("parent got:", msg.(string)) }) }, )
Options
Data
data
Type: Object | Function Restricton: Only accepts Function when used in Vue.extend().
Vue.nextTick( callback ) callback Function Vue.js batches view updates and executes them all asynchronously.
Vue.partial( id, [definition] ) id String definition String | Node optional Register or retrieve a global partial.
No description provided by the author
Vue.transition( id, [definition] ) id String definition Object optional Register or retrieve a global JavaScript transition effect definition.
# Variables
config fields { // print stack trace for warnings? debug: true, // attribute prefix for directives prefix: 'v-', // interpolation delimiters // for HTML interpolations, add // 1 extra outer-most character.