Skip to main content

All Questions

0 votes
1 answer
134 views

Dynamically adding counter to v-data-table with two buttons to increment and decrement and the number between them

The problem here is I am getting data from an api and the data has no property like 'count' so I need to create another array and use it in v-for. But I want to specify a number with the counter and ...
Abdullah Okay's user avatar
0 votes
2 answers
804 views

Simple List Rendering in Vue with finding Index and passing props

so I do the beginning todo list stuff. I have this array state() { return { news: [ { id: 1, title: "Titel 1", ...
mikasa's user avatar
  • 165
0 votes
1 answer
216 views

Cannot read properties of undefined (reading 'map') when trying to display two arrays

I have a component containing an array, which has certain categories and headers. I wanted to put these into a collapsible menu, but ran into trouble because since all the items are in a single array, ...
Cphml444's user avatar
0 votes
1 answer
144 views

Vue: lost object attribute after put response.data to local aray

I have API that returns json objects like this: [ {"id":3,"delivery_from":"bsl","task_id":410169,"unit_job_id":224128,"completed_at":null,&...
Boris's user avatar
  • 13
2 votes
1 answer
286 views

VueJs getting error from Dynamically array passing as string but works fine if the array is hard coded

I am trying to pass the array to the Draggable Vue component. The array generating dynamically from the inside loop but getting the error Invalid prop: type check failed for prop "list". ...
Plycoder's user avatar
  • 726
0 votes
1 answer
66 views

delete specific array in array of objects with javascript

I'm trying clean/filter a array to download in CSV, but I have a trouble to make this work... I make this for to catch bigger array to make new array with old array. oldArray: [ { Cpf: null, ...
Veterano's user avatar
0 votes
1 answer
3k views

how to pass array of different values as props in vue

everyone I hope everyone is doing great. I'm new to vue.js and was learning prop's which is pretty intersting. The thing is I want to pass an array as props and want to display it in the child ...
Muhammad Khan's user avatar
2 votes
2 answers
283 views

How do I match the union of two arrays in a v-for loop

I have two arrays: users and projects. IDs in both are unique numbers. A project can have more than one owner, so in projects I have an array of user IDs named ownersId that link to the id of users in ...
beetle120's user avatar
  • 123
1 vote
1 answer
51 views

vue: access a specific array from an object inside an array

I want to show only one of the questions array in a single page, depending on which category the user picks. faqData = [ { name: "first-category", questions: [ { id: ...
user avatar
2 votes
1 answer
894 views

Loop through product items by category group in Vue template

I want to render products by categories. So far I can render products with v-for, but I want similar products to render according to category. I am fetching data from Django via DRF while using ...
Muhammad's user avatar
0 votes
1 answer
308 views

Undefined method inside vue.js app returns no data

So I have a quick question, I'm wanting to return some data but for some reason I am unable to get any data to my method. So I have the following component and vue.js app: Vue.component('favorites-...
user avatar
1 vote
1 answer
268 views

Total sum of all input values

I want to sum every existing and added value to a total sum, which I can always see. I'm kinda struggling with how to include my existing values and those I want to add afterward. In IncomeList I have ...
Volnick's user avatar
  • 89
3 votes
1 answer
459 views

How can I change the value of an item in an array based on multiple conditions?

I am trying to change the value of an item in array, based on matching other items in the array. The array might contain details of the section (non-unique), a unique ID, and a value I wish to change (...
IainM's user avatar
  • 43
2 votes
1 answer
1k views

Vue generate array of objects according to loop length

I am really new to Vue and for one project I am trying to create an array of objects according to a number. For example, if the total length value is 3 then is there a way to create fetchList1, ...
Yahoo's user avatar
  • 568
0 votes
1 answer
137 views

Problem filtering Array in Array by date between 2 dates

So I'm just using a method to filter it's working like a charm but I'm losing my original Array when there is no date between I provided (as expected). What can I do to not lose my Array. I want this ...
L4W's user avatar
  • 15

15 30 50 per page