Questions tagged as 'vue.js'

1
answer

Advantages x Disadvantages SPA VueJs

I have an application (closed system) in PHP structured in the company I work with and we will rewrite this application to improve performance, usability and evolve this application. I'm studying VueJs and I've really enjoyed the approach to...
asked by 11.01.2018 / 14:46
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 pass headers on request with Vue.js 2

I need to pass the header Authorization which is located in localStorage with the key of iflix-user-token , here is my code: getFilmes: function () { this.$http.get(Api.url + '/filme').then( response => {...
asked by 22.10.2017 / 15:17
1
answer

WebPack + NodeJS import bootstrap + jquery

Hello, everyone at Stackoverflow, I have a VueJS project already with Webpack. And I've been importing the JQuery and Bootstrap libraries. I went to my node and used the commands npm install jquery --save-dev npm install bootstrap --save-de...
asked by 20.09.2017 / 15:56
1
answer

Hide component outside the router-viewer

I'm using Vue Rotuer to control the routes of my project, so I've seen the need to use Navigation Guards . <script> export default{ beforeRouteEnter(to, from, next){ if(to.meta.adminOnly === false){...
asked by 04.10.2017 / 22:17
1
answer

I am having problems loading bootstrap-vue js

import Vue from 'vue' import App from './App.vue' import BootstrapVue from 'bootstrap-vue' import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap-vue/dist/bootstrap- vue.css' Vue.use(BootstrapVue); new Vue({ el: '#app', render: h...
asked by 14.09.2017 / 22:25
2
answers

Execute function after certain time that has stopped typing (keyup) VueJS or JS Pure

I'm trying to do that as I stop typing in the input, the system waits a second to do my search and return my result, but I can not. The system is being done in VueJS <input class="input" type="text" v-model="valorPesquisa1" v-on:key...
asked by 27.06.2017 / 16:35
1
answer

Error of a Vue project with Laravel

The first error is saying that it is in this file named main.js , and I did not find any error in this file; import Vue from 'vue' import app from './app' require('./bootstrap'); new Vue(app).$mount('#app'); This is the error: T...
asked by 28.09.2017 / 14:06
1
answer

Change page content when clicking on link in VueJS

I have an email application and I have a side menu with all the email boxes that will be available to the user. Here is the image: What I want to do is: Each time I select (click) an item from that menu it reloads only the content of...
asked by 24.08.2017 / 16:42
1
answer

CSS transition ignored when array order in v-for changes

I'm making a component where I can drag other components vertically. When one component passes the other, they must switch places (on the X axis). What happens is that the element I'm dragging respects the CSS transition, slides to the next p...
asked by 16.09.2017 / 21:46