Skip to main content

All Questions

Tagged with
1 vote
1 answer
37 views

Declaring object.prototype in js - VueRouter it automatically calls a method

I declared an extension method for objects by creating my own function. However, I do not call or import it anywhere. As a result, I get an exception. How can I fix this? I don't recall such behavior ...
padavan's user avatar
  • 911
0 votes
0 answers
310 views

Migrating to Vue 3 but router view is not working

I having a vue 2 project and currently migrating it to vue 3, but the router-view is not able to render the component while the path is correct. I have check on the issue, the problem seem is because ...
Wai Chun Meng's user avatar
1 vote
1 answer
177 views

Return component in beforeEnter in vue router

I have the following path in my router { path: '/Page', component: async () => { const isUserLogged = await getUser() const ...
gj1's user avatar
  • 70
1 vote
1 answer
330 views

Remove "#" from URL in Vue Router (Vue.js 2)

My current URL is like domain/main.html#/ => This loads my home page I want my URL to be free from '#' i.e. domain/main.html/ const router = new VueRouter({ mode: 'history', routes, )} I ...
Harsh Shukla's user avatar
1 vote
1 answer
232 views

Accessing Router from Inside Setup Call (Mixing Composition/Options APIs)

We're in the middle of migrating our Vue 2 application to Vue 3, and as such we have the Options API and Composition API living side by side. Most of the composition API is working fine. However... I'...
Harrison Cramer's user avatar
1 vote
1 answer
98 views

is there an way to run towice vue apps in one index.html First vue Version is 3 and second vue app version is 2

I created two apps with vue framework, and i want to combine them together in one directory to be like this: https://host.com/ => runs first vue app EX: Website Store. https://host.com/admin => ...
Mohamed Mojahed's user avatar
0 votes
1 answer
340 views

How to change in vue parent component css child

Is there a way to set the Vue parent component footer CSS differently only in the subcomponent inside the router? I want to change the login.vue CSS inside the Router view I tried both the deep method ...
bxeom's user avatar
  • 85
-1 votes
1 answer
119 views

how to use dynamic routing in vuejs

this is my json object ,i'm trying to access jackets in my url { "_id": "6316f215fd9c107baa1bc160" "type": "Jackets", } this is my router component to get ...
jibzy's user avatar
  • 547
0 votes
1 answer
885 views

Unable to use router.push in Vue 3 with unplugin-vue-router dependency

I'm trying to migrate a Vue 2 project to Vue 3, in the Vue 3 project It has a library named "unplugin-vue-router" which is an Automatic file based Routing in Vue with TS support. But In the ...
Hugo Pedro's user avatar
0 votes
1 answer
2k views

Components are not showing when the routes changing in vue (Vue3, Vue-router)

I'm new in Vue(v.3) and vue-router, before I share the problem with you guys, I searched it inside Stack Overflow and google, but the problem still unresolved. I define two routes: /login /admin/...
MN A's user avatar
  • 49
1 vote
1 answer
550 views

vuejs loading component dynamically depending on route component

I'm a newbie to Vuejs and I'm wondering how I can load the component to App.vue depending on the route visited. In my router -> index.js I have: import { createRouter, createWebHistory} from 'vue-...
dataviews's user avatar
  • 3,140
1 vote
0 answers
149 views

Named views with children in Vue?

I have a single page with multiple <router-view/> shown at the same time using named views. That works well, however I need to also add children to each view but can't figure out how to do that. ...
vir us's user avatar
  • 10.8k
5 votes
1 answer
18k views

Failed to resolve component: router-link and router-view

router-view and router-link components cannot be resolved in my app I don't know what the problem is attached the app code it's a home page app with something like a navbar to route to the vue ...
kareem's user avatar
  • 59
3 votes
1 answer
5k views

VueJS 3 routing with vue-router and CDN

For the past three hours or so, I have been trying to convert a VueJS 2 + vue-router + CDN project to VueJS 3. I haven't been able to make it work so far. The VueJS 2 version works just fine. The ...
erlango3's user avatar
  • 339
0 votes
0 answers
525 views

Separate login component than handling component Vue.js

I am trying to code a mini application with Vue.js. I want to display the login page on the first page if the user is not logged in. Else, if the user logged in, I want to show a dashboard or a ...
albertyaz's user avatar

15 30 50 per page