Vue Directive to move the DOM without losing all the VM data, event, etc. it's Adopted from vue-transfer-dom just Simplify it and change some writing behavior
Include the vue-move-dom.js to your HTML or web page file after Vue.Js.
<div id="app">
<!-- Will move to body -->
<button v-move-dom >The Button</button>
<!--
Will move to selected element
the script will be `document.body.querySelector('#there')`
-->
<button v-move-dom="#there" >Move Button</button>
</div>
<div id="there"></div>
Hopefully this can be useful for your next projects.
Just Contact Me At:
- Email: [email protected]
- Skype Id: bosnaufal254
- twitter: @BosNaufal
MIT Copyright (c) 2016 - forever Naufal Rabbani