I'm trying to render Vue data in my summary.vue file.
Here is my HTML: (index.html)
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="./lib/animate/animate.css">
</head>
<body>
<app></app>
<script src="./lib/jquery/jquery-2.2.4.min.js"></script>
<script src="./lib/bootstrap/js/bootstrap.min.js"></script>
<script src="./node_modules/vue/dist/vue.js"></script>
<script src="./node_modules/vue/dist/vue.min.js"></script>
<script src="./src/summary-components.js"></script>
<script src="bundle.js"></script>
</body>
</html>
The 'app' tag is somehow connected with this file: (entry.js)
import Vue from 'vue';
import App from './Summary.vue';
new Vue({
el: 'body',
data: {
message: 'test',
},
components: { App },
});
Which finally renders my .vue file 'Summary.vue'. But my data won't render to my http server, even trying to use script tags. (Summary.vue)
<div id="summarye">{{ message }}</div>
<script>
new Vue({
el: '#summarye',
data: {
message: "Vue JS Testing"
}
});
</script>
In my 'summary-components.js' file i've tried:
import Vue from 'vue';
import summary from './Summary.vue';
It's just not displaying.. can someone help me correctly import and get vue working?