All Questions
446 questions
0
votes
0
answers
36
views
Vue Router 2.6 Navigation Issue, cannot navigate back (browser button)
I’m working on a Vue.js (v. 2.6) application that uses Vue Router for navigation between different pages. After logging in, the user is redirected to the home page with the following code:
this.$...
0
votes
2
answers
112
views
Handling a this.$router.replace(href); in vue 2
I am new to vue and working on vue code those before me created. So there is a lot of legacy code that is just too complex to change right now.
The vue code can be in one of two states when a user ...
1
vote
1
answer
50
views
transferring userId from one component to another using vue router
I have a list of users obtained from the api. I need to make sure that when you click on the user's name, a page with his information opens with a separate link
Component UsersList
<button @click=&...
2
votes
2
answers
495
views
How to Disable the Vue component (div-tag)?
I am trying to disable the VUE component based on the user access settings. Now, I am able to hide the component from the UI, but after every re-render, the component is getting active. I don't just ...
0
votes
1
answer
1k
views
How to animate a transition from one Vue component to the same component (with a different parameter) using router?
I have a Vue 2 application. It uses router to manage pages. On one page, you can click to go to the next page, and the next page is the same component. You can think of it like a folder page going to ...
0
votes
0
answers
359
views
Vue Component wont render HTML on browser refresh
Before going into my specific issue, I would like to preface I have spent a lot of time researching to see if my situation wasn't unique, and have not found that to be true. I have a very specific ...
0
votes
1
answer
712
views
Calling methods inside beforeRouteEnter NProgress
I am trying to call an API before navigating to the route. The problem is that if I try to call axios call inside beforeRouteEnter it is working fine for example:
{
beforeRouteEnter(routeTo, ...
0
votes
1
answer
1k
views
routers and components in vue.js
My component information is not displayed!!!
the router is working great and I test it to many times but there is nothing in components when I run the project.
They all seem to have nothing in them ...
0
votes
0
answers
922
views
Vue route query parameters are not updated in the browser URL
I have a Vue component named ComponentSearch, It is used to search.
<template>
<div class="cs">
<div>
<el-input
placeholder="search"
...
2
votes
1
answer
60
views
Vue <a> tag href attribute splicing
My current url is http://localhost:8080/component, and in this page I have an <a> tag
<a :href="'/detail/' + comp._id"></a>
When comp._id is determined, for example it is ...
0
votes
0
answers
57
views
After adding 1 item to TODO app fails when I just type on text field, How to fix it?
this might be stupitest question to ask but I just can't understand why this is happening , I am trying to Build simple TODO app with Nuxt Js with Vuex, When I add one Item it works fine and displays, ...
2
votes
0
answers
1k
views
Run a Vuejs application using vs code
I am trying to
run an existing project developed by VueJs with asp.net core on vs code.
The application works correctly when I run it with visual studio (IIS Express). But when I try to run it with vs ...
1
vote
2
answers
1k
views
What is the best way to grab first URL segment from Vue.js hash mode?
I have this URL generated by my vue.js app
http://localhost:8080/#/url-groups
I need to access url-groups
I've tried
const firstSegment = new URL(window.location.href).pathname.split('/#/')
I kept ...
3
votes
2
answers
1k
views
Vuejs : Accessing Specific URL Segment
I have a route/URL :
Ex. http://localhost:8080/qr-codes
I want to access to the first segment
qr-codes
How do I do that ?
I used to be able to do sth like this in Laravel
Request::segment(1);
4
votes
3
answers
21k
views
Vue.js : Property or method is not defined on the instance but referenced during render
I have
<template>
<div class="dashboard">
<Navbar />
<MainPanel :title="Dashboard" :icon="dasboard" />
</div>
</...