Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 696 Bytes

README.md

File metadata and controls

50 lines (35 loc) · 696 Bytes

@vasiliyrusin/v-with

Install

npm i @vasiliyrusin/v-with

Import

Global import

import Vue from "vue";
import VWith from "@vasiliyrusin/v-with";

Vue.use(VWith);

Local import

import { VWith } from "@vasiliyrusin/v-with";

export default {
  name: "ComponentName",
  components: { VWith }
}

Example

<template>
    <VWith :variables="{ world: 'world' }">
        <template #default="{ world }">
            Hello, {{ world }}!
        </template>
    </VWith>
</template>

<script>
    import { VWith } from "@vasiliyrusin/v-with";
    
    export default {
        name: "ExampleComponent",
        components: { VWith }
    }
</script>