Answer the question
In order to leave comments, you need to log in
vue-router components not loading?
Guys, I don't understand something with routing.
1. created a project on cli
2. created a favorites component
3. made a routing to this component
import Vue from "vue";
import Router from "vue-router";
import Favorites from "../components/Favorites.vue";
Vue.use(Router);
export default new Router({
routes: [
{
path: "/favorites",
name: "Favorites",
component: Favorites
}
],
mode: "history"
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question