0% done with Many-to-Many relationships in Vuex
14:20
|
Published on
10/4/2019
|
|
Chapter 11 of 27 in Building VueScreencasts.com
Adding and Removing Tags
We first try the obvious method for adding and removing tags -- taking the updated array and setting it in the store -- but that causes a bug.
The method we settle on is using underscore's differenceBy
function to uncover what tag has been added or removed, then sending that one tag to Vuex.
What do others think of VueScreencasts?
"Excellent video. Thanks so much. Looking forward to the rest of the series."
—SilenceKillsDesign
"Amazing!!!!! Need this so much!!!!!!"
—Nathan Yang
"Very good tutorial, thanks."
—ivan89pln
"Thanks @Vue Screencasts!! This video helped me a lot in understanding Vuex, and in answering questions that I have, which I can't find answers for on StackOverflow. Keep up the good work!!"
—kidgr33n