Hi Guys I got a simple Vue.js project and I am trying to import a vue template file into my index.html file without using the cli-tools like webpack or browserify.
As far as i understood I would need to use something called a router to be able to todo this and import some extra JS in my project.
<script src="https://unpkg.com/http-vue-loader"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
In my index.html script tag i am creating a new object which refers to my navigation component which i wanna include.
var Settings = httpVueLoader('Navigation.vue') ,
router = new VueRouter({
routes:[
{ path:'/navigation', component: Navigation }
]
});
I wanna be able to just use the <navigation></navigation>
tag inside my index.html file to get whatever code is inside the Navigation.vue file.
I got a codepen with my project here: https://codepen.io/fennefoss/project/editor/ZerEod#