8000 GitHub - allindevelopers/vue-local-scope at 49707dae521a6b7c22081961cc53edf7da7931b3
[go: up one dir, main page]

Skip to content

allindevelopers/vue-local-scope

Repository files navigation

@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>

With Full Type Completion

image

Note

Can be used in JSX but types are not infered

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published
0