0.2.0 • Published 9 months ago

@allindevelopers/vue-local-scope v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@allindevelopers/vue-local-scope

Allows to reuse an expression that is repeating multiple times in a Vue Template

<script setup lang="ts">
import { LocalScope } from "@allindevelopers/vue-local-scope";
</script>

<template>
	<LocalScope lorem="Lorem Ipsum Dolor Sit Amet" #default="{ lorem }">
		<ol>
			<li>{{ lorem }}</li>
			<li>{{ lorem }}</li>
			<li>{{ lorem }}</li>
		</ol>
	</LocalScope>
</template>

!NOTE
Can be used in JSX but types are not infered

0.2.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago