Skip to main content

All Questions

0 votes
1 answer
600 views

can't import components inside of my router.js (VueJS)

I want to work with vue-router, but I'm not able to import my components into my router.js. I also get following warning: [Vue Router warn]: No match found for location with path "/" I ...
B0BBY's user avatar
  • 1,109
0 votes
2 answers
97 views

Why component doesn't render when I change the route?

I have a template, and there is a component: <super-visor v-if="!top10ModeActivated" v-for="cart in getCarts(index + 1)" :cart="...
dmitriversikerq123's user avatar
0 votes
1 answer
226 views

component name not showing up in url

I am currently building a vue/node app. In my Login.vue page, I use router.push to move to the home page once authentication is done. Demonstration: router.push({name: 'home', params: {data: this.var}}...
Juliette's user avatar
  • 4,439
0 votes
0 answers
38 views

Multiple router-views, activated 1 at a time

Ok so I have a component, machine, inside that component I have a component called gear being imported, I use gear three times in a div, the gear component has a button that when pressed should ...
Wes Wesley's user avatar
0 votes
2 answers
2k views

How to display component inside another component and navigate between by using vue-router?

I managed to implement the project on Vue. Now there are some other problems occured. I want this dashboard to be a single page application. Now I have four main components in the main page which are ...
Yasin Demirkaya's user avatar
3 votes
4 answers
7k views

How to dynamically change content of component with JSON?

I am creating my design portfolio using Vue CLI 3. The architecture of my website is very simple. I have a home page, about page, work page, and several individual project pages: Home About Work ...
Austin Branham's user avatar
0 votes
3 answers
384 views

Transfer Data From One Component to Another

I have a component which makes a call to my backend API. This then provides me with data that I use for the component. I now want to create another component which also uses that data. While I could ...
JoeIsBlogging's user avatar
0 votes
1 answer
621 views

Vue router can't loading component

main.js: import Vue from 'vue'; import App from './App'; import router from './routes/Route'; Vue.config.productionTip = false; new Vue({ el: '#app', render: h => h(App), router }) Route.js: ...
major697's user avatar
  • 1,862
0 votes
1 answer
603 views

Reload component with vue-router

I have a project with Vuejs and Vue-Router. When a user pay in (login) system, the server return a file Json with token, username and first name, this file is stored in localstorage for be used in ...
Federico Fia Sare's user avatar
0 votes
1 answer
583 views

How can I setup a props-based animate transition?

So I'm really noobish with VueJS but I have experience with React... which doesn't help. My initial goal is to make 4 pages available, and, since they have an 'order', the transition classname would ...
Jaeger's user avatar
  • 1,764
1 vote
0 answers
878 views

Using a component containing other components within a router-view in Vue.js

I am trying to build a layout using single-file components in Vue.js, with dynamic population and URLs using Vue-router. (I'm using the webpack template via vue-cli as well.) It works as expected for ...
Amanda Harvey's user avatar
15 votes
1 answer
24k views

How to pass data to a router-view in Vue.js

How can I pass data from my main app to a component through router-view in Vue.js? I have successfully gotten the data from my API as shown below: mounted() { // console.log(model) this.model ...
Dapo Michaels's user avatar
0 votes
1 answer
711 views

Using Vue.js components in PHP apps

I am using PHP and Vue.js with vue-router. I've got a php form handler that sends emails. I would like to redirect the user to a certain component from my vue app when the email is sent. Is there a ...
kabugh's user avatar
  • 315
2 votes
0 answers
865 views

Vue.js: Why is there a white screen in between sliding transitions instead of the next component view?

I am using a slide transition for the components, yet the sliding screen appears white for a few seconds before the actual component is shown. How do I make it flow instantly to the next view? This ...
AKL012's user avatar
  • 399
16 votes
1 answer
50k views

How to Properly Use Vue Router beforeRouteEnter or Watch to trigger method in Single File Component?

I'm working on an app in Vue.js using Single File Components and Vue Router. I have a Search component where I need to execute a method to re-populate search results each time a user visits the route. ...
Adam Sweeney's user avatar

15 30 50 per page