Interface

IAssetLinkPluginRouteHandle

IAssetLinkPluginRouteHandle

An object which is passed into the method a plugin provides for declaring a route via IAssetLinkPluginHandle#defineRoute.

View Source assetlink-plugin-api/src/IAssetLinkPluginRouteHandle.js, line 3

Methods

# component(component)

Specify the component for this plugin-provided route.

Usage

pageRoute.component(SomeVueComponent);
Parameters:
Name Type Description
component VueComponent

The component for this plugin-provided route. this can be anything that is valid as the first argument to Vue's h() function. See Vue's documentation on render functions.

View Source assetlink-plugin-api/src/IAssetLinkPluginRouteHandle.js, line 26

# path(path)

Specify the path for this plugin-provided route.

Usage

pageRoute.path("/my-page/:arg");
Parameters:
Name Type Description
path String

The path of this plugin-provided route. See https://router.vuejs.org/guide/essentials/dynamic-matching.html for route path format.

View Source assetlink-plugin-api/src/IAssetLinkPluginRouteHandle.js, line 11