Skip to content

API reference > @kontsedal/olas-vue > olasPlugin

olasPlugin() function ​

The Vue plugin that provides a root to the whole app. The root is built outside Vue, once, and app.use hands it to every component:

ts
const root = createRoot(appController, { deps, queries: queryEngine() })
createApp(App).use(olasPlugin(root)).mount('#app')

Signature:

typescript
export declare function olasPlugin(root: Root<unknown>): {
  install(app: App): void;
};

Parameters ​

Parameter

Type

Description

root

Root<unknown>

Returns:

Released under the MIT License.