Answer the question
In order to leave comments, you need to log in
How to use vue loader in a project?
There is a small vue project on codesandbox where I am trying to use vue-spinner .
Main page Home.vue with links to other pages\components:
<router-link to="/">Home</router-link>
<router-link to="/helloworld">Hello World</router-link>
<router-link to="/bigimg">Big Img</router-link>
import Vue from "vue";
import App from "./App";
import router from "./router";
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
el: "#app",
router,
components: { App },
template: "<App/>"
});
router.beforeEach((to, from, next) => {
//loading = true;
next();
});
Answer the question
In order to leave comments, you need to log in
How to use this loader to load a site
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question