What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-25 19:29:15
npm install router
//Installing Vue Router npm install vue-router //Implementation //main.js - Add below lines import VueRouter from 'vue-router'; Vue.use(VueRouter); const router = new VueRouter({ routes, mode: 'history' }); new Vue({ router, render: h => h(... Add solution -
CSS 2021-10-16 20:03:09
vue import css scoped
// To import global CSS, simply import the stylesheet in main.js or App.vue, // where it is easy to reference all global styles in one main file // (or create a styles-import.js file and import that file in your main.js file). // main.js import '~/asse... Add solution -
Html 2021-10-08 02:51:11
vuejs transition to switch between pages
<!-- App.vue --> <router-view v-slot="{ Component }"> <transition name="slither" mode="in-out"> <component :is="Component"></component> </transition> </router-view> Add solution -
Javascript 2021-10-04 10:15:02
vue router transition
<!-- App.vue --> <router-view v-slot="{ Component }"> <transition name="slither" mode="in-out"> <component :is="Component"></component> </transition> </router-view> Add solution -
Javascript 2021-10-04 03:52:03
vue router Unknown custom element: <router-link> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
// router.js import Vue from 'vue' import VueRouter from 'vue-router' import Home from './components/Home.vue' import ListView from './components/ListView.vue' import Counter from './components/Counter.vue' Vue.use(VueRouter) export default new VueRoute... Add solution
Best helpers
Michaelyus
+5
EBA2018
+5
Eric Lewis
+5
J. Tatum
+5
Erwaman
+5
Jp_
+5
Fauve
+5
Katy Forde
+5
Jcvamp
+5
Chris
+5
Xiaotian Pei
+5