@vasiliyrusin/v-with
v2022.5.13
Published
Downloads
1
Readme
@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>