0.2.2 • Published 1 year ago

@allindevelopers/vue-local-scope v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@allindevelopers/vue-local-scope

An implementation of posva/vue-local-scope for Vue 3 and TypeScript support

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>

With Full Type Completion

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

0.2.1

1 year ago

0.2.2

1 year ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago