Hello everyone, I have a Vue.js project that I am working on and I am looking to import a vue template file into my index.html without using webpack or browserify.
It seems like I will need to use a router to accomplish this and include some additional JavaScript in my project.
<script src="https://unpkg.com/http-vue-loader"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
Within the script tag of my index.html, I am defining a new object that points to my navigation component that I want to include.
var Settings = httpVueLoader('Navigation.vue') ,
router = new VueRouter({
routes:[
{ path:'/navigation', component: Navigation }
]
});
I would like to simply use the
<navigation></navigation>
tags inside my index.html to display the content from the Navigation.vue file.
You can view my project on Codepen here: https://codepen.io/fennefoss/project/editor/ZerEod#