0.1.0 • Published 1 year ago

vue-wrap-directive v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Install

npm install --save @nekoos/vue-wrap-directive

Usage

Register the directive

import Vue from "vue"
import Wrap from "@nekoos/vue-wrap-directive"

Vue.use(Wrap);

Component

<div v-wrap="toggle">I am the content</div>

When toogle is true, render this:

<div>I am the content</div>

When toogle is false, render this:

I am the content