ux icon indicating copy to clipboard operation
ux copied to clipboard

[Vue.js] How to access the app instance?

Open Kocal opened this issue 3 years ago • 2 comments

Hi everyone,

Currently it looks like it's not possible to access the result of createApp() in order to add some customisation, e.g. when you want to use a plugin:

const app = createApp();

app.use(MyPlugin);
app.use(MyPluginWithOptions, {
    // ...
});

When reading render_controller.ts code, I don't see/understand how we can access this.app, making plugins (like Vue Router) unusable.

Thanks!

Kocal avatar Sep 23 '22 12:09 Kocal

Hey @Kocal!

I think you need #444 - it's merged, just not tagged yet. All of these events need documentation.

weaverryan avatar Sep 23 '22 14:09 weaverryan

Oh thanks, I wasn't aware about that PR.

Then let's add some documentation :)

EDIT: well, I'm not sure to understand how those events work, even by reading the initial PR or the tests, 'guess I will pass my turn 😕

Kocal avatar Sep 23 '22 16:09 Kocal