Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tserkov/vue-directive-hoist
A Vue directive for hoisting DOM elements to a higher parent node.
https://github.com/tserkov/vue-directive-hoist
directive hoisting javascript vue vuejs vuejs2
Last synced: 13 days ago
JSON representation
A Vue directive for hoisting DOM elements to a higher parent node.
- Host: GitHub
- URL: https://github.com/tserkov/vue-directive-hoist
- Owner: tserkov
- License: mit
- Created: 2017-05-20T05:18:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T17:40:05.000Z (almost 7 years ago)
- Last Synced: 2024-12-06T22:13:22.271Z (27 days ago)
- Topics: directive, hoisting, javascript, vue, vuejs, vuejs2
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# vue-directive-hoist [![license](https://img.shields.io/github/license/tserkov/vue-directive-hoist.svg)]()
A Vue directive for hoisting DOM elements to a higher parent node.## Install
``` bash
# npm
npm install --save vue-directive-hoist
`````` bash
# yarn
yarn add vue-directive-hoist
```## Use
```javascript
// In main.js
import Hoist from 'vue-directive-hoist';Vue.use(Hoist);
``````html
```
If no value is provided, by default the element is hoisted to ``.