Support scoped slot on template diagnostic
See original GitHub issueIt currently just ignores slot-scope
and v-slot
. We need to add declared variables by scoped slot in local scope.
<template>
<MyComp v-slot="{ foo }"> <!-- foo will be in local scope -->
<p>{{ foo }}</p> <!-- should not provide error here -->
</MyComp>
</template>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Slots - Vue.js
Expressions in Vue templates can only access the scope it is defined in, consistent with JavaScript's lexical scoping. In other words: Expressions in...
Read more >Azure Monitor supported metrics by resource type
Use diagnostic settings to route platform metrics to: Azure Storage. Azure Monitor Logs (and thus Log Analytics). Event hubs, which is how you ......
Read more >A Structured Reporting Templates (Normative)
This Template provides references to supporting evidence in the form of DICOM composite objects. This includes references to images, spatial coordinates on ...
Read more >@volar/vue-typescript | Yarn - Package Manager
Vue Language Features \; Vue, Vitepress, petite-vue language support extension for VSCode*; TypeScript Vue Plugin \; VSCode extension to support Vue in TS ......
Read more >Content projection - Angular
Single-slot content projectionlink · Create a component. · In the template for your component, add an <ng-content> element where you want the projected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I already made a PR #1210 which supports both v-slot and slot-scope.
I still get an error when I use slot variables for v-bind:class