<div id="app">
<div>
<button id="vanilla-external-button">Open from Vanilla</button>
</div>
<hello-modal></hello-modal>
</div>
<!-- built files will be auto injected -->
<script>
document.onreadystatechange = function(){
var elm = document.getElementById("vanilla-external-button");
elm.onclick = function(){
window.ModalEvent.$emit("openModal");
}
}
</script>
import Vue from "vue"
export const ModalEvent = new Vue()
window.ModalEvent = ModalEvent
import $ from "jquery"
import { ModalEvent } from "./ModalEvent"
$(function(){
$("#jquery-external-button").click(function(){
ModalEvent.$emit("openModal")
})
})