- 
  Notifications
 
You must be signed in to change notification settings  - Fork 680
 
Open
@dsultanr 
Description
Hi! Very impressive and descriptive project. Thanks!
Sorry for asking the question beyond the scope of the project, but couldn't find your contacts
I'm trying to inject this Vue app into my existing JSP based project. I did already successfully build that Vue app. I just done npm build and copied js/css to my Java project. It works fine as a standalone app. But my goal is to render the Vue app after click of th button on my existing page.
now the main.js contains this:
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
new Vue({
	render: h => h(App)
}).$mount('#chat_app')
my html is:
...
<div id="app"></div>
<input type="button" value="Chat"/>
<script src="assets/js/app.beb67329.js"></script>
<script src="assets/js/chunk-vendors.29eba92b.js"></script>
now the chat initializes automatically on the page load, how to make it render on a button click?
Metadata
Metadata
Assignees
Labels
No labels