Hopefully you enjoy this little bit different of a video! Shoutout to ruclips.net/video/A0BmLYHLPZs/видео.html (webDevJunkie), he did this challenge using react. Be sure to check it out if you want to see something similar in a react setting.
I think you missed one thing you need to clear your deletedPoints array when new point is added. and the redo and undo button should have correct disabled status.
Did it by myself with a canvas and then watched your video and saw that you used a v-for. Quite dumb of me for not thinking within vue. But hey, I guess resolving the problem was the main point!
Hopefully you enjoy this little bit different of a video! Shoutout to ruclips.net/video/A0BmLYHLPZs/видео.html (webDevJunkie), he did this challenge using react. Be sure to check it out if you want to see something similar in a react setting.
I think you missed one thing you need to clear your deletedPoints array when new point is added. and the redo and undo button should have correct disabled status.
thanks for this video John!! It was fun & very useful, please make more such videos related to interviews. :)
I appreciate that! I do have a few other videos like this using a new platform I’ve been working on www.webdevdaily.io
Definitely going to give this a try!
we can add a check too to check for the conditions when there are no more points to delete or redo
Did it by myself with a canvas and then watched your video and saw that you used a v-for. Quite dumb of me for not thinking within vue. But hey, I guess resolving the problem was the main point!
Pro tip: no need to make deleted points a ref 😎 17:23
Marvelous💯
thank you
google calendar clone with vue
there is no vue option 6:53 :
What?
you need to install the vue dev tools extension
Awesome. I added a reset button to clear points
Reset Points
const resetPoints = () => {
points.value = [];
deletedPoints.value = [];
};