Code Monkey home page Code Monkey logo

Comments (9)

ninmesara avatar ninmesara commented on May 22, 2024

I'm using vuejs 2.0. Is this the reason?

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on May 22, 2024

Hello @ninmesara, you are correct Vue.Dragable.For is currently only working with Vue.js 1. As directives have changed a lot in Vue.js 2.0, Vue.Dragable.For needs an important re-write. I am waiting for Vue 2.0 to stabilize before starting with work. I will rename this issue as a lembrete to make Vue.Dragable.For Vue 2.0 compatible.

from vue.draggable.

robmpreston avatar robmpreston commented on May 22, 2024

Vue 2.0 is pretty close, I can't imagine what would change at this point that would cause issues with rewriting it now.

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on May 22, 2024

from vuejs/vue#2873:

Directive interface change

In general, in 2.0 directives have a greatly reduced scope of responsibility: they are now only used for applying low-level direct DOM manipulations. In most cases, you should prefer using Components as the main code-reuse abstraction.

Directives no longer have instances - this means there's no more this inside directive hooks and bind, update and unbind now receives everything as arguments.

Note the binding object is immutable, setting binding.value will have no effect, and properties added to it will not be persisted. You can persist directive state on el if you absolutely need to:

Directive have changed a lot indeed.

from vue.draggable.

robmpreston avatar robmpreston commented on May 22, 2024

Sorry, I'm not sure you understood my comment.

My point is Vue 2.0 is at a stable enough point that you can begin work on the next version of Vue.Dragable.For. I'm well aware of the directive changes :)

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on May 22, 2024

I got you now! You are correct it seems to be a good time to begin to work on this migration.

from vue.draggable.

beeplin avatar beeplin commented on May 22, 2024

yes, vue 2.0 has been just officially released 4 days ago. :)

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on May 22, 2024

@beeplin , true: I am already working on migration to 2.0, Next version will probably be a component as directive have drastically changed in Vue.js 2.0.

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on May 22, 2024

Migration done: new component named draggable created

from vue.draggable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.