Questions tagged as 'vue.js'

0
answers

Static ELue with vuerouter

I have an application that uses vue-router, but it also has the need to login, and with this login comes the change in the header, where you will log in and register, or panel, but in specific cases. I'm using vue router, is there any way thi...
asked by 28.06.2017 / 00:32
0
answers

How do I use AddEventListener () in vueJs?

I'm doing a function of my project and I need to use the addEventListener() event but it's giving an error: excluirVariante:function(v){ console.log(this.$el.querySelector('#op_nao')); console.log(this.$el.querySelector(...
asked by 25.05.2017 / 14:37
1
answer

How to pass an object between independent components

I have a problem, I need to pass an object between two independent components but I am not able to, I have tried with the $ broadcast but without success, they follow my components to have the ideas of the structure. The goal was to pass an obje...
asked by 26.05.2017 / 11:07
2
answers

How to use ancora in vuejs / vue-loader?

I'm creating a project with vuejs webpack (vue-loader) and recently I came across a problem, I can not anchor any tags, because vue understands that when using hash #, you are wanting to direct to a route ... Anyone know how to solve this? I...
asked by 07.05.2017 / 07:11
1
answer

Can I pass the http method via parameter with vue-resource?

I'm using vues and I'm doing ajax requests via vue-resources. With vue-resources it is possible to make requests like this: this.$http.get('/someUrl').then(response => { // get body data this.someData = response.body; }, response => {...
asked by 09.04.2017 / 22:47
1
answer

How to output sub-component data with Vuejs 2?

How can I get all checked items from a component in another instance having the following tree structure? window.Event = new Vue(); Vue.component('tree', { props: { model: { type: Array, default: function () { return...
asked by 28.12.2016 / 14:11
1
answer

need help with this error: Uncaught TypeError: Can not read property 'push' of null Vue.methods.addOrder (anonymous function)

Problem When I'm going to call the addPedido function with v-on:click="addPedido" of vue.js the Uncaught TypeError error: Can not read 'push' of null property and I could not identify the urgent problem needing urgent help!...
asked by 30.11.2016 / 03:54
0
answers

Problem to compile Gulp in Laravel 5.3

Error while running Gulp laravel 5.3, I have reinstalled all the packages. What to do? Here is the error you give me: Vue packages version mismatch: [email protected] [email protected] This may cause things to work incorrectly...
asked by 29.09.2016 / 16:47
1
answer

Execute a PHP function as html attribute?

What I need is the following, I have this html code: <div php-if="{{valor}}>0">CONTEUDO QUE SERÁ MOSTRADO DINAMICAMENTE</div> The variable "{{value}}" already has how to return dynamically. What I would like now is to run a f...
asked by 05.12.2017 / 03:15
2
answers

Attempting to make a for in a vue-js object

I'm trying to loop (for) an array object in Vue-Js, (javascript) whose size is 11 (lenght = 11) as below. But when I do: console.log (this.grouped) // Here it shows the object with length = 11 for (var i=0;i<10; i++){ console.log(...
asked by 14.06.2018 / 13:10