What do you want to save?
Add Code snippet
New code examples
-
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 -
Javascript 2021-09-27 01:04:03
vue property decorator mixins
// mixins.js import Vue from 'vue' import Component from 'vue-class-component' // You can declare mixins as the same style as components. @Component export class Hello extends Vue { hello = 'Hello' } @Component export class World extends Vue { world... Add solution -
PHP 2021-09-26 11:36:04
veue laravel remove #/
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) let router = new Router({ mode: 'history', //removes # (hashtag) from url base: '/', fallback: true, //router should fallback to hash (#) mode when the browser does not su... Add solution -
-
Javascript 2021-09-05 21:44:03
[Vue warn]: Error in mounted hook: "TypeError: this.$store is undefined"
//You are not importing Vuex and adding the store to Vue. //In your index file import your store: import Vue from 'vue' import Vuex from 'vuex' import store from './store' // change path if necessary //Then use it: Vue.use(Vuex) //And add it to Vue so ... Add solution -
Shell/Bash 2021-08-31 18:20:01
install bootstrap vue laravel 7
import Vue from 'vue' import BootstrapVue from "bootstrap-vue" import App from './App.vue' import "bootstrap/dist/css/bootstrap.min.css" import "bootstrap-vue/dist/bootstrap-vue.css" Vue.use(BootstrapVue) new Vue({ el: '#... Add solution