-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper way to integrate a Javascript Vue plugin #26
Comments
As described in the documentation native Vue Plugins work out of the box with try this example from browser import window
from vue import Vue, VueComponent
Vue.use(window.VueSocketIO.new({
'debug': True,
'connection': window.io.new(),
}))
class App(VueComponent):
template = '''
<div class="container" />
'''
App("#app") along with this scripts:
- https://unpkg.com/[email protected]/dist/vue-socketio.js
- https://unpkg.com/[email protected]/dist/socket.io.js and deploy with flask as described here vue-cli deploy flask |
On a related note, I can't see any tests for VuePlugin, and despite the code and documentation matching the official Vue.js documentation, it doesn't seem to work. Ie, when using the following:
I get the following output:
Ie, the |
Thank you for reporting this. |
I'm not clear how to wrap and integrate a Vue.js plugin from the docs.
I've got the following:
I'm not sure if I should use VuePlugin or some other method.
Along with this, VueSocketIO can receive a dict of options, I'm not sure how this would be passed in?
The text was updated successfully, but these errors were encountered: