Skip to content

Instantly share code, notes, and snippets.

Created Jan 28, 2020
What would you like to do?
import Vue from 'vue';
import Router from 'vue-router';
import Home from './views/Home.vue';
import PrimerComponente from './components/PrimerComponente.vue'; // <-- Importar aquí
export default new Router({
routes: [
path: '/',
name: 'home',
component: Home,
// Definir ruta:
path: '/primer_componente',
name: 'primer_componente',
component: PrimerComponente,
path: '/about',
name: 'about',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment