Questions tagged as 'vue-router'

2
answers

Change view / component but not URL

I'm working on a 404 page, it works fine, I have the following: const router = new VueRouter({ routes: [ // ... { path: '*', component: NotFound, name: '404', meta: {page_titl...
asked by 03.11.2017 / 19:53
1
answer

Authentication jwt with vuejs

I'm a bit confused with authentication using jwt token, I have an application on vuejs + vue-router, I'm not wanting to use vuex until I learn how to do it without it (I do not like to use what I do not understand). So I have my API in NodeJS wh...
asked by 14.03.2018 / 18:39
1
answer

Pass $ route as parameter to a Vue JS function

Is it possible to pass $route as a parameter to a function? <v-btn color="info" v-on:click="getProximo('this.$route')"> Próximo </v-btn> I need to get a parameter that is in $route , but when I use this.$rout...
asked by 13.11.2017 / 19:07
1
answer

How to perform a "back" transition using the Vue Router?

I'm making a simple transition in a webapp (using animate.css), where the user clicks a button and the current component exits the screen from the left and the other component comes from right to left. But when I return to my initial component,...
asked by 25.09.2018 / 23:50
0
answers

Context of the component of the vue is coming wrong

I have a problem in developing a project using Vue2, when I look for the context of the component, it does not return the "right" context, such as:    $ router If you want to appear in the next context, the object I get when I search i...
asked by 27.06.2018 / 22:52
0
answers

Refresh page value VueJS

I ended up crashing into a problem that I can not solve. When I create a page detalhes , I call it using this.$router.push({name: 'Detalhes'}) And I pass a parameter this.$router.push({name: 'Detalhes', params: {dados...
asked by 26.10.2017 / 14:17
1
answer

Clear vue-router history when loading main menu

In a PWA I am using VueJS and I am having problems with the back button of the smartphone, because when I use it PWA does what is most logical and returns to the previous screen. But I just log into PWA and log in and when I use the back butt...
asked by 12.04.2018 / 16:41
1
answer

Vue-router: hiding components in page exchange

I'm learning vues and now I've come across a difficulty in hiding components when showing the other routes for example: <template> <div id="app"> <ion-icon name="help-circle-outline" class="help"></ion-icon>...
asked by 30.10.2018 / 21:38
1
answer

Problem adding JS file to project with VueJS 2

I have the following problem: When I include a local .js file in my project with VueJS I get the following error message. Herearemystructureandcode: I realized that if you include an external file, via CDN for example, it works perfect...
asked by 23.07.2018 / 00:36
1
answer

Vue-router + firebase

I'm trying to make a login system with vue and firebase, but I'm having trouble redirecting the user after authentication: login: function () { firebase.auth().signInWithEmailAndPassword(this.email, this.password).then( (user) => {...
asked by 25.04.2018 / 00:08