vue-filter
vue-filter copied to clipboard
How do you can iterate arraylist using groupBy
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