Skip to main content

Subscribe to GoRails to get access to this episode and all other pro episodes, and new awesome content every month.

Subscribe Now
Only $19/month

Unlimited access. Cancel anytime.

17 Rails & Vue.js Trello Clone:

Rails & Vue.js Trello Clone - Part 3

Episode 219 · December 12, 2017

Implement the Vue.Draggable plugin to add drag and drop support to our Vue.js application and sync the changes to the server

Javascript VueJS


Subscribe or login to view the transcript for this episode.


In `draggable` tag, `v-model` should be changed to `:list` because it's immutable. So drag and drop won't be able to update it.

Sorting the other way, i.e. `->{ order( position: :desc ) }` causes objects to get the wrong position on page refresh. Is there other configuration that needs to happen to make it set that properly on drag?

Login or create an account to join the conversation.