dev-resources.site
for different kinds of informations.
Vue3 Challenge: Array Editor
Published at
9/20/2022
Categories
Author
Aleksey Razbakov
Categories
1 categories in total
open
As a Developer I need a component XArray
that can edit arrays of strings.
Acceptance criteria
-
XArray
accepts array of strings in v-model - It renders each string as separate input
- When value of input is changed, it's written back to the array
- If value is empty the element is removed from array
- There is always one extra input shown, so that it is possible to add new values
- Last input is not loosing the focus on typing and new extra input is shown below it
- Examples in
App.vue
work as expected
Example
Let's say that myArray=['one', 'two']
Given Vue Template should result into Resulting HTML.
Vue Template
<XArray v-model="myArray" />
Resulting HTML
<div>
<input value="1">
<input value="2">
<input value="">
</div>
How to submit?
- Write in the comments "Challenge accepted".
- Fork stackblitz project and send a new link with your solution as a reply to your original comment.
Unit tests are good to have, but optional.
Share useful articles in the comments.
In a meantime I will start working on a tutorial and a solution. Don't miss it - subscribe to discussion and follow me.
Tips
- If you are new to Vuejs, start with tutorial
Articles
12 articles in total
AI-First Organization
read article
My Journey with AI Agents: Revolutionizing WeDance Development 🚀
read article
Git Rebase like a Pro
read article
Responsive Images: Best Practices in 2025
read article
ChatGPT Advanced Voice Mode in Germany
read article
Code Lynch Live: Submit Your GitHub Projects for a Live Code Review on Twitch!
read article
HTML+CSS Workshop
read article
Vue3 Challenge: Form Editor
read article
Vue3 Challenge: Array Editor
currently reading
Vue3 Challenge: ButtonsGroup
read article
i18n style
read article
nuxt-firebase-composition
read article
Featured ones: