wy-ei / vue-filter

:v: A collection of Vue.js filter. [Depressed]
MIT License
353 stars 40 forks source link

How do you can iterate arraylist using groupBy #28

Open javierdelgado1 opened 5 years ago

javierdelgado1 commented 5 years ago

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