Skip to content
Advertisement

Tag: vue.js

Vue v-for and variable logic unclear

trying to code a chatPage from a tutorial, the tutorial was releases in vue 2.0 and now i wanna use the new vue 3.0 version. I have a messageContainer which will display the chatMessages. it has the messages as an array and it should loop over them and display each one as a messageItem. Yet, the syntax with the v-for

Get properties from array of objects group by objects

Good day, I have an array artists[] of Proxy-objects. Proxy by themself also are arrays of objects (as I understood). Each of inner objects has property “artistName” (photo). Meanwhile third Proxy has two. I need to get smth like this: So, as result we get arrays of artist’s names grouped by Proxy objects. Please, help! Answer There are two levels

Advertisement