Questions tagged as 'vue.js'

1
answer

How to filter an array by another?

I'm trying to use the filter with vue, but I'm having difficulty. Code: list() { var self=this const list = this.programas; if (_.isEmpty(this.filter)) { return list; } return list.filter(function(item) {...
asked by 06.02.2017 / 18:56
1
answer

VUE JS Consuming API and using V-FOR with 2 tables

I have 2 tables Table 1 [ {"Id": "1", "nome": "João"}, {"Id": "2", "nome": "Manoel"} ] Table 2 [ {"Estudante": "1", "nota": "5", "avaliação": "1"}, {"Estudante": "1", "nota": "6", "avaliação": "2"}, {"Estudante": "1", "nota": "7", "ava...
asked by 27.12.2016 / 14:30
2
answers

vue vue-resource $ http.get does not recognize json with [

I have a php that delivers the following content [{"Id":"50630","Operador":"","Id_cadastro":"61693"}] The vue-resource only recognizes if I remove the [] My code is vue this.$http.get('data.json').then(function(response) { this.ce...
asked by 26.12.2016 / 14:48
1
answer

Axios GET is not collecting any personally identifiable information

Save, I'm having trouble collecting data from a weather API. My goal is to collect a lot of the rain data and for this I am using Vue Axios but I can not collect anything because even after changing the code the same error continues. Code:...
asked by 20.11.2018 / 17:59
1
answer

Error in Vue.js build in Laravel

I'm getting the following error when saving the app.js file: link The files are these: app.js: require('./bootstrap'); window.Vue = require('vue'); Vue.component('example-component', require('./components/ExampleComponent.vue'...
asked by 07.11.2018 / 19:03
2
answers

Change values of objects coming from the api?

Is it possible to change values in the frontend to api? For example, I have an api that returns this to me: "data":[ "nome": "sp", "nome": "mg", "nome": "rj" ] Then, for example, I make a simple request of it using GET this.axio...
asked by 21.11.2018 / 20:55
1
answer

Do I need to compile the vue to see the style changes I made?

I'm using Vue JS for the first time. I downloaded all dependencies through npm, including VUE itself. I have the following questions: In order to view the changes in css, do I need to do a build? How do I import a css library through...
asked by 22.12.2018 / 20:34
1
answer

Pass array via post in Vue.js

I need to pass an array via POST , I tried as follows: const params = new URLSearchParams(); params.append('pagamentos', this.variavel_array); axios.post('grava_pedido_pdv.php', params); The variable variavel_array contains...
asked by 17.10.2018 / 03:57
1
answer

v-model does not work in vuejs

In a simple test in Vue.Js, following the documentation example, span never displays the data selected by select. The select is set by vue, but the variable select is not mirrored. <div class="row" id='vue'> <sele...
asked by 26.09.2018 / 16:56
1
answer

Import VueJs template from an external html file

Is there any way to import an html file into the template? Vue.component('porcentagens',{ data: function(){ return { porcentagemSangramentoMarginal: 78, porcentagemPlaca: 78, porcentagemOLeary: 78, } }, templat...
asked by 25.09.2018 / 13:26