@all1ndev/vue-local-scope
An implementation of posva/vue-local-scope for Vue 3 and TypeScript support
18,835
6
| Install | |
|---|---|
npm install @all1ndev/vue-local-scope |
|
| Latest Version: | 0.3.2 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Jan 27, 2026 |
| Links: | GitHub · npm |
Maintainer: directive4837
@all1ndev/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 "@all1ndev/vue-local-scope";
</script>
<template>
<LocalScope
lorem="Lorem Ipsum Dolor Sit Amet"
lorem-ipsum="dolor"
#default="props"
>
<ol>
<li>{{ props.lorem }}</li>
<li>{{ props.loremIpsum }}</li>
</ol>
</LocalScope>
</template>
With Full Type Completion
[!NOTE]
Can be used in JSX but types are not infered
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.3.2 | MIT | |
| 0.3.1 | MIT |