Skip to content

vue-qs v0.1.18


vue-qs / createVueQsPlugin

Function: createVueQsPlugin()

createVueQsPlugin(options): object

Defined in: adapter-context.ts:81

Creates a Vue.js plugin for vue-qs that automatically provides the query adapter

Parameters

options

VueQueryPluginOptions

Plugin configuration options

Returns

object

Vue plugin object

install()

install: (app) => void

Parameters

app

App

Returns

void

Example

typescript
import { createApp } from 'vue';
import { createVueQsPlugin, createHistoryAdapter } from 'vue-qs';

const app = createApp();
const historyAdapter = createHistoryAdapter();
const vueQueryPlugin = createVueQsPlugin({ queryAdapter: historyAdapter });

app.use(vueQueryPlugin);

Released under the MIT License.