Vuejs is the data-driven javascript framework, that has powerful v-for arrays that use app data. What to do if this data has multiple items with multiple properties?

Image for post
Image for post
Real life example

Let’s say we need to create a list of 12 items, where every item has icon, name and alt text, or project you are working on is translated to 40 languages and each language has flag image, full name, and short name, or you are making a game with multiple levels that are generated from array object. Shortly saying, that’s a common task in development.

Keeping the whole array inside the data function isn’t very handy, because it will increase significantly lines of code number in your file. …


Dmitry Mind

Product Designer / Frontend Developer, Entrepreneur and hungry Freelancer 🍕

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store