[Vuejs]-Vue – altering model arrays

0👍

Apparently, Vue can’t switch between two data sources (dummyValues and csvValues).
I had to use a third one, which now holds/cycles elements from either of the first two. So, instead of building my view from one or the other arrays, I’m popping/pushing stuff to my third array (renderingValues) and always iterating that one.

Want to render dummyValues?
– pop everything (previously csvValues) from renderingValues
– push everything from dummyValues to renderingValues
– iterate renderingValues

Leave a comment