vuegorouter

package
v1.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	// Path : Example '/home'
	Path string
	// Component : Component for route
	Component *vgue.Component
}

Route model

type VueRouter

type VueRouter struct {
	// Routes : all routes
	Routes []Route
	// Mode : Example 'history'
	Mode string
	// Component : Component main for routes
	Component *vgue.Component
}

VueRouter Group Routes

func (*VueRouter) Mount

func (ctx *VueRouter) Mount(el string, vparams ...vgue.Params) (js.Value, error)

Mount Vue Component

func (*VueRouter) MountWait

func (ctx *VueRouter) MountWait(el string, vparams ...vgue.Params) error

MountWait : Mount vue and wait

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL