v-for Questions

3

Solved

How to show only one button per every distinct date ? can i use two v-for loops ? how to select distinct values in my loop? <div v-for="question in allQuestions" > <button v-for="date i...
Jolda asked 7/1, 2019 at 13:3

2

Solved

Vue: v2.* In my project vuejs I use v-for range with computed Computed computed: { numberOfPages() { const result = Math.ceil(this.collection.total / this.collection.per_page) return (result ...
Chinchy asked 20/7, 2018 at 0:21

3

Solved

I read this documentation but cannot use the proposed solution. I have a v-for loop over objects. These objects are changed dynamically over time and I need that change to show reactively in the v...
Haukom asked 30/11, 2018 at 11:56

1

Solved

I would like to loop over my routes using v-for in order to generate the <router-link>s dynamically in the template section. Currently I have no idea how to address the router param, that is...
Neurovascular asked 28/7, 2018 at 9:14

1

Solved

I have a v-for loop with vue.js on a SPA and I wonder if it's posible to set a variable at the beginning and then just print it everytime you need it, because right now i'm calling a method everyti...
Jevon asked 17/7, 2018 at 17:16

2

Solved

I am using vuetify and trying to iterate through a javascript object containing the different hexcodes I want to apply as background. The end result would look something like this: I am trying...
Declamatory asked 24/3, 2018 at 10:39

3

Solved

This is my vue instance: var vue = new Vue({ el: '#vue-wrapper', data: { items: [], }}) This is a v-for loop in my index.html.eex <div v-for="item in items[0].subItems">{{item.name}}&l...
Tameka asked 16/2, 2018 at 10:17

1

Solved

In my Vue app, I am looping through an array of schools. Each school has a name, an array of teacher counts (one per grade), and an array of student counts (one per grade). The following code work...
Mycobacterium asked 28/8, 2017 at 20:35

1

Solved

I created dynamic ids using v-for index, the problem is when I'm trying to use Bootstrap's data-target to link the div This doesn't work: <button data-toggle="collapse" data-target=&qu...
Howl asked 13/7, 2017 at 13:55

1

Solved

Refer to the template below, how to add condition to make sure the menu is not undefined inside the v-for attribute? I've tried v-for="menu?item in menu.items:[]" and v-for="item in menu?.items" ...
Afterbrain asked 2/5, 2017 at 14:44

2

Solved

I am using v-for to render a list based on an array of objects. <ul> <li v-for="category, i in categories" :class="{active: category.active}" @click="changeCategory(i)"> <a>{...
Flourish asked 1/5, 2017 at 15:34

1

Solved

I've just started using Vue.js, it's simple enough accessing the assets folder when loading a static img such as my logo: <img src="../assets/logo.png"> however, I'm using v-for to...
Kwei asked 17/4, 2017 at 8:17

1

Solved

I have an array (history) that is being pushed two items every time a button is pressed. Those two items will need to have different css styles when printed. HTML <ul class="info"> <li ...
Yapok asked 25/3, 2017 at 0:46

2

Solved

I'm trying to display a list of items on an event's agenda. The event has a start_date end each item on the agenda has a duration in minutes, for example: event:{ start_date: '2017-03-01 14:00:...
Etch asked 2/3, 2017 at 18:15

© 2022 - 2024 — McMap. All rights reserved.