0.1.2 • Published 7 years ago
v-if-debug v0.1.2
v-if-debug
Component for overriding conditionals in development environments
Quickstart
npm i -S v-if-debugIn main.js
import DebugIf from 'v-if-debug'
Vue.use(DebugIf, {enable: config.DEBUG_MODE})Example
Let's say you have a modal component that displays based on some property showModal like this:
<VueModal v-if="showModal" />To enable the over toggles you would wrap VueModal with the DebugIf component like this:
<DebugIf label="Toggle Modal" :condition="showModal">
<VueModal slot-scope="{show}" v-if="show" />
</DebugIf>Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildLints and fixes files
npm run lint