Skip to main content

All Questions

0 votes
1 answer
357 views

Vue router scrolling to vue-view comp

I'm creating an application in Vue and I'd like all the main content to be on one page with the option to scroll to specific elements such as LandingPage then below Form, About ..etc. Is there any way ...
Jakub Kosmal's user avatar
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 ...
lai9fox's user avatar
  • 69
0 votes
1 answer
6k views

Router Link in VUE JS is not showing active

I hope you are having an amazing week. The thing is I'm learning VUE for a couple of weeks now but currently I'm facing an issue with VUE Router. Following is the issue that I'm facing: 1- I have ...
Muhammad Khan's user avatar
6 votes
2 answers
4k views

How to define variables in Vue router to be used inside components?

I have a navbar on top and a <router-view> right below it (as seen in App.vue). I want the title inside the navbar to change depending on the route/view I am on. Since my views in the <router-...
treeden's user avatar
  • 765
6 votes
1 answer
9k views

Vue 3 keep-alive cache routes

I'm using Vue 3 <keep-alive>. When I don't use :key it caches (improperly across different URLs as expected). By adding <router-view :key="$route.fullPath" v-slot="{ Component }...
Tallboy's user avatar
  • 13.5k
1 vote
1 answer
3k views

How to toggle sidebar without page reload when router-link is clicked in Vue 3

I have a sidebar component that works similar to a modal. When a button is clicked, the sidebar translates into the viewport with nav links. These nav links are actually router-links that are wired up ...
scienceyeaux's user avatar
-1 votes
2 answers
1k views

Vue.js is routing javascript file as index page

I have several JavaScript files that I want to include globally in my web page. In index.html, I include the script: <script type="text/javascript" src="./js/my-file.js"></...
John's user avatar
  • 6,298
0 votes
0 answers
51 views

how can i use html index for Vue-router?

For example I have index.html. I wanna to use it in <router-link></router-link>, but it not worked. I have one nav-bar, I want to use it for all of vue and html page, if you have an idea ...
M.SAM's user avatar
  • 538
0 votes
1 answer
98 views

Multiple adress parameters in single page application

Sorry for the long post. My code is corrected by a bot and I get an error returned that I can't seem to work my way around. In my code, I want to make so that you can you can visit #two-adress, ...
jonjohval's user avatar
1 vote
1 answer
713 views

Nested Vue component not rendered when navigation guard is used

PS: This is my first ever question on SO, so forgive me for any blunders I commit My code is as follows Login.vue <div class="login"> <div class="dialog row justify-content-end"> ...
Abhishek S's user avatar
0 votes
1 answer
254 views

Vue Native Router gives error not being used

So I am creating an app for a school project and I am trying to make a navigation screen. I have a screen with 2 buttons and I am trying to make them work. If I click/press on the button I want to go ...
Cas Bekhuis's user avatar
0 votes
1 answer
70 views

Connecting html pages to vue page

i created a dashboard using vue.js but i have earlier created simple web pages using basic Html and CSS . Is there any method of redirecting the Html page to vue dashboard on click of a button . Vue ...
mayank3503's user avatar
2 votes
2 answers
6k views

How to use router-view for tabs in Vuejs?

I have using vuesax [ https://github.com/lusaxweb/vuesax ] for tabs. In vs-tabs i have multiple router-view. I want call show different vue template file for respected tabs of router-view. Here is ...
PvDev's user avatar
  • 829
2 votes
1 answer
5k views

Search filter with Vuejs

I'm new to Vuejs. I'm building simple blog app and I'm trying to add search filter, but I have a problem. So far my code looks like this: <template> <div> <input class="form-...
mijok's user avatar
  • 201
8 votes
2 answers
20k views

Is there a way to route to html files with Vue router?

Hello I am using VueJS and the webpack template. I have a bunch of components I can easily display with Vue Router. However, my organization uses Robot Framework for testing and we generate an HTML ...
Kevin Patrick's user avatar

15 30 50 per page