Skip to content
Advertisement

Tag: vue-component

Calling a parent function from a child component raises an error in Vue.js

I have a navigation drawer child component inside my parent component. MainComponent.vue Now, in the child component (Navigation drawer), I tried to call a function from the MainComponent by doing: I have a similar parent-child component that calls a function from parent to child, but I don’t know why this one gives me an error saying: TypeError: this.$parent._appendUseris not a

Using external Vue component after build

I’m trying to make a website with plugins, the admin panel is all Vue.js, and I want the plugin to be an external component (Rating.vue, AdsConnect.vue), how I can do that, and is that possible? I think that the Eval function can help me, but I really don’t know; and, in case I can’t use external components, can I use

Build typescript vue apps with only babel?

How can I transpile and build my typescript vue app with only babel? I used the vue-cli-service extensively but reached a point where I just need a minimal setup, without webpack or anything. My .babelrc My package.json dependencies: My entry main.ts file: My App.vue My build script: Answer Unfortunately you cannot build with babel, as it only transpiles languages and

Vue-router change query dynamically in navigation stepper

There is this project I’m working on and I’m stuck. I want when I click next step button the route becomes http://icontent.me/app/employer/make-order?step=1 and so on. I’m using Vue.js and vue-router. How do I make this happen? I have included the router.js and a screenshot if necessary. router.js next handler Answer this.$router.push({ path:this.$route.path, query: { step: this.current } })

Advertisement