In this video, we extend our Vue.js Todo App and look at component communication and managing state at a basic level. We extract out a TodoItem component and use props and custom events to communicate between child and parent components.
BUG NOTICE @ 18:29 You should NOT pass in the index to update (and delete) the todo in the array. This will lead to an incorrect index when you filter the todos. Instead, pass in the id from the todo.id and find the correct index based on that id. See this commit that fixes it: https://github.com/drehimself/todo-vu...
GitHub Repo: https://github.com/drehimself/todo-vu...
LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter: / drehimself
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself
Смотрите видео Vue.js Todo App - Component Communication - Part 2 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Andre Madarang 05 Апрель 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 31,703 раз и оно понравилось 601 людям.