Questions tagged as 'vue.js'

2
answers

VueJS: how to create a condition for a v-model?

The problem is this, I have a switch done with label and input checkbox and it has a default value that comes from the date of my Vue instance. var app = new Vue({ el: '#app', data: { slcModalidad: 0, chkPosNet: tru...
asked by 04.09.2017 / 22:18
1
answer

Project Laravel does not recognize my Javascript file

This is the structure of my project: Asyoucanseeintheimageabovetheapp.jsfileisintheassets/jsfolderMyapp.jsfilelookslikethis;//varurlUsers='https://randomuser.me/api/?results=10';varurlUsers='https://jsonplaceholder.typicode.com/users';newVue...
asked by 10.10.2017 / 11:57
1
answer
2
answers

VueJS Router-View and Axios

I have a page with 2 structures using router-view. Menu and Content . or on my Menu I have a page called " Stores " on this " Stores " page has a table, I give an Axios.Get on my API and it returns me a JSON that plays to the " Stores tabl...
asked by 21.09.2017 / 22:02
1
answer

Convert data with JavaScript?

How do I convert the date in this type 02 Ago 2017 to 02/08/2017 ? I'm using vuejs-datepicker and when selecting it comes in that format, and in the documentation says to do so ... customFormatter(date) { return mo...
asked by 04.08.2017 / 16:34
2
answers

Convert image to base64 using VueJS?

I have <input type="file /> in VueJS and when I select an image I want it to be converted to base64 , because I will save the images in the database only in base64 . What would be the method to get only the String...
asked by 03.10.2017 / 15:51
1
answer

How to get the value of the no Vue?

I have the variable Vue: var appExemplo = new Vue({ el: "#appExemplo" }); How can I get the value that is in el ? In this example it would be #appExemplo . This.el returns undefined.     
asked by 26.07.2017 / 16:56
1
answer

How do I wait until all requisitions have ended?

How can I execute the sortOrder function as soon as the getOrders function finishes all requests? I thought about using a callback , but without success, any suggestions of a promise or code that uses callback? Currently my...
asked by 29.11.2018 / 14:53
1
answer

How to make multiple requests in parallel in axios?

I have two urls to make the request: link and link I would like to make requests for both in parallel, currently I have done separately as in the code below: axios .get('https://api.tuuris/cities') .then(response => { this....
asked by 01.08.2018 / 18:50
1
answer

Making a Get using Axios (Vue.js)

I'm trying to pull a list of names from a json ( link ) using the axes however I do not understand why I get the error TypeError: Can not set property 'pokemons' of undefined Since my console.log is returning the list correctly, it follo...
asked by 09.08.2017 / 03:54