Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 ``.