All Questions
43 questions
0
votes
1
answer
1k
views
VueJs | "Cannot read properties of undefined (reading 'id')" but it can
So I have a small problem but maybe some of you can help me.
I'm using Axios to fetch data with my Rest API and put the data (bookings) into an array. In the template I want the name of the of the ...
0
votes
1
answer
2k
views
Javascript Vue 3 Extract data from an array and display into a table
Hello everyone hope you having a great day,
I have setup a front end app on Vue Js linked with an express.js api which connects to a mysql database. I use axios for sending http requests. I am able to ...
-2
votes
3
answers
500
views
Split array data from fetch data
I fetch this data from the api
array : { "Blue": 8646, "Red": 3451, "Green": 2342}
then i want to split this into two array
arrayColor : ["Blue", "Red&...
1
vote
0
answers
28
views
Construct a new array based on filter results of an API [duplicate]
I have an API that returns a list of brands which is an array of objects. I tried to filter out and kept only specific ones. I can see that it ran twice on the console, but when I tried to push those ...
0
votes
2
answers
179
views
How to make multi-dementional arrays with array lists wiht axios and vue js
I am quite new to the axios and javascript and I am so confused with making multi-dimentional array.
1. I want my data to look like :
userList: [
{
user_no:...
0
votes
0
answers
748
views
How i cann loop over my array when its an observer object
i want to iterate over an array, however my array is an observer. i have tried several ways, like converting to an array. nothing works.
does anyone have a suggested solution?
i'm pretty stuck on this....
1
vote
1
answer
2k
views
How to use condition with Vuejs with array and v-for?
I have an array file load with Axios, the problem is in this have an array that has image and video and I can't change it, I want to just the array that has only image, can someone please help to do ...
0
votes
1
answer
230
views
How to work with the api using axios vue.js
I have a list of radiobutton car brands, how do I get an array of models from the server after selecting a certain brand and display it on a new page? What specific actions are needed for this? Thank ...
1
vote
1
answer
154
views
how to pass object into another array object
please help me to pass the object into another array thank you vuejs
how to pass object into another array object
import axios from 'axios';
export default {
data() {
return{
...
0
votes
0
answers
42
views
try to send an array of objects that has another array of objects from vu to laravel controller
Im trying to create a test, each test has an image(file) and one or more questions, and each question has an (file) and one or more choices...
each questions has questions_text and questions_file and ...
1
vote
1
answer
244
views
How to merge (equal and unequal length) arrays by Id on Created() in Vue2
I need a code advice, since not finding a solution...Potentially two part question:
On Created(), I have 2 arrays that I want to combine (one of arrays is an external Axios API)
'''
<template>
...
1
vote
2
answers
181
views
Group json array by value
I'm relatively new to Vue and am trying to organize an API response by country, then state. The following is a sample response from the API:
[
{
"id": 1,
"title": {
...
0
votes
1
answer
316
views
How to assign the (filtered) response of an Axios request to a variable in VueJS?
I have an Axios request through which the response is an object:
I've filtered the response like so:
response.data.value_table_cols.map(col => col.header)
To get the following array as a result - ...
0
votes
1
answer
53
views
Laravel Vue SPA: How can the prop which is an array retrieved by axios be passed to a child component?
Laravel Vue SPA: How can the prop which is an array retrieved by axios be passed to a child component?
The json object is correctly available at somedomain.com/channellist.
It is then retrieved by ...
2
votes
1
answer
917
views
How to post array of object to PHP using axios?
let dataArray = [
{
fname: 'name #1',
choice: 'choice #1',
},
{
fname: 'name #2',
choice: 'choice #2',
},
// more data could be appended here
];
I have a data structure ...