vue-filter icon indicating copy to clipboard operation
vue-filter copied to clipboard

How do you can iterate arraylist using groupBy

Open javierdelgado1 opened this issue 6 years ago • 0 comments

Good Afternon boys I have a problem, I dont know how iterate array

I have the next array data(){ return{ list: [{ name: 'James, LeBron', score: 38, department: 'es' },{ name: 'Irving, Kyrie', score: 43, department: 'es' },{ name: 'Jefferson, Richard', score: 11, department: 'en' }] } }

in my html I have

I always get an error, telling me that there is no groupby

div v-for="(value, index ) in list | groupBy('department')" :key="index" {{ value }} /div

javierdelgado1 avatar Jan 28 '19 16:01 javierdelgado1