Questions tagged as 'vue.js'

1
answer

Error "Access-Control-Allow-Origin is not allowed" with Vue.js

I try to make a request with Axios from a Vue component. The server collects it correctly, with a status code 200, but I have a problem with the answer. I get this error: Failed to load http: // ....: Request header field Access-Control-Allo...
asked by 11.09.2018 / 16:25
1
answer

Problem when returning data through $ emit

I have 2 components, the child component generates an issue to the parent component and after the function is executed in the parent component that returns the data to the child component, what I have done is the following: In the son compone...
asked by 23.08.2018 / 15:49
1
answer

Promise in a vuex action does not work when trying to handle the http request error

Hello, I am developing an application in Vue.js, Nativescript and Vuex , when making an ajax request in an action return a promise to handle asynchrony the problem is that when an error is generated this It is not captured at the moment of call...
asked by 17.09.2018 / 18:55
1
answer

Can you pass an array to a vue component?

I have a question. In a certain view of laravel I load certain data which through my controller I pass them with (Compact) and they are later loaded and I show them with my foreach. but I do not know if there is any way to pass that array to...
asked by 18.05.2018 / 00:37
2
answers

Someone knows why the variables that I define in VUE.js appear in this way

when reloading my application I get the variables as indicated by the image {{variable}}, and then I get the normal information, in my opinion it looks ugly is that normal? thanks     
asked by 16.05.2018 / 03:15
2
answers

Obtain data from a controller in Laravel in Vue Js and interact with them.

I'm trying to bring data from a Laravel driver to Vue JS. data() { return { article: undefined } }, created() { this.$http.get('article/' + this.$route.params.id + '/edit?include=category,tags') .then((r...
asked by 15.05.2018 / 07:33
1
answer

npm run dev throws error [closed]

After configuring my app.js file in resources / assets /, when I run on the console npm run dev sends me this error: ERROR in ./resources/assets/js/app.js Module build failed: SyntaxError: C:/xampp/htdocs/logismart/resources /assets/j...
asked by 24.04.2018 / 18:33
1
answer

Because my component does not render (Vuejs)

My component must render a table with data at the press of a button, but it does not appear even though the console shows me a Array with values Vue.component('list-din',{ template:'<div> <b-button @click="agrega">Agreg...
asked by 19.04.2018 / 06:46
1
answer

Get the days of the week from a date - Javascript

Create a function that brings me the days of the week from Monday to Sunday : weekLabel(current) { const week = []; const weekFormat = []; current.setDate(((current.getDate() - current.getDay()) + 1)); for...
asked by 15.07.2018 / 17:56
1
answer

Why is not data shown in vue js with firebase?

This I have: The codepen: show with vue fire js: let config = { apiKey: "AIzaSyADg_j2wCsHOog0v8EiytCpm4rUdFnbGFs", authDomain: "vuefire-38fad.firebaseapp.com", databaseURL: "https://vuefire-38fad.firebaseio.com...
asked by 18.10.2017 / 01:17