Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Vue on top of pure JSP #214

Open
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /