[Vuejs]-Vue – how can i load a component in a window?

1πŸ‘

βœ…

The WinBox.js package does not seem to have any support for integrating with Vue. The content inside one of its windows is not part of your Vue app and can’t use props, data, methods, components, etc. Options include:

  • mounting a secondary Vue app into the WinBox window and bridging data between the apps as needed (fully functional, but possibly tedious to code)
  • using the WinBox mount option (see example on its home page) to clone content from your app into one of its windows (loses all reactivity and interactivity, so not much of an option)
  • migrating to Vue 3 and using its teleport feature to place content from your app into WinBox windows (cleanest, but the migration may present difficulties)

Leave a comment