Code Challenge: Vue Reusable Input Component
For this tiny interview, you have two tasks to perform on this Vue application:
- Implement a two-way binding so the
BaseInput.vuecan be used for entering data by using the v-model directive.
- Conditionally render the value that has been entered into the input when it is not empty.
Please see the instructions written directly in the pad to proceed:
💡 Remember to share your solution with the hashtag #CoderpadTinyInterviews on Twitter and LinkedIn.
Code Challenge solution
Verify your solution with the official solution in this sandbox.
We have made available an extra resource to improve your Vue coding skills:
Want to conduct interviews on this platform?
Check out CoderPad : pick any interview question or create your own, then invite your candidate to a shared live-coding session on an IDE like this one. You even get 2 free interviews per month forever using this registration link!