Clarify in documentation that "slot-scope" is named "scope" before 2.5.0
See original GitHub issueWhat problem does this feature solve?
The documentation about Scoped Slots says:
In 2.5.0 ,
slot-scope
is no longer limited to the<template>
element, but can instead be used on any element or component in the slot.
But it is not says, that until 2.5.0, slot-scope
doesn’t work at all, even inside <template>
element. To make it work, It must be scope
inside <template>
element.
What does the proposed API look like?
It will be good to mention in the same warning element in documentation, that slot-scope
not works until 2.5.0 and slot
must be used instead.
Something, like:
Until 2.5.0,
slot-scope
was namedscope
and was limited to the<template>
element. In 2.5.0 ,slot-scope
is no longer limited to the<template>
element, but can instead be used on any element or component in the slot.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
What does slot-scope mean in the Vuetify.js v-hover guide?
You get a "local variable" named hover that you can use inside the <v-hover> tags: <v-hover v-slot="{ hover }"> <div> <div ...
Read more >How To Use Scoped Component Slots in Vue.js - DigitalOcean
In Vue 2.5.0, the slot-scope attribute was introduced. ... need to pass properties into a named or unnamed slot from your child component....
Read more >Slots - Vue.js
Here, slot-scope declares the received props object as the slotProps variable, and makes it available inside the <template> scope. You can name slotProps ......
Read more >Liquor Tree - GitHub Pages
Introduction. This library allows you to present hierarchically organized data in a nice and logical manner based on the VueJS framework.
Read more >Countdown plug-in with high performance and high ... - Morioh
Countdown plug-in with high performance and high accuracy for Vue2.5.0+. ... getTime() + 60000"> <span slot="process" slot-scope="{ timeObj }">{{ `Lefttime: ...
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
@xak2000 Perhaps you’re confusing
slot
, that has existed since Vue slots were introduced, withscope
, that was replaced byslot-scope
in 2.5 (and it’s already noted in docs).@leopiccionia It’s noted in the API docs only. But my issue is about the guide, not API docs.
I’ll opened PR. Thanks.