question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarify in documentation that "slot-scope" is named "scope" before 2.5.0

See original GitHub issue

What 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 named scope 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:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
leopiccioniacommented, Jan 23, 2019

@xak2000 Perhaps you’re confusing slot, that has existed since Vue slots were introduced, with scope, that was replaced by slot-scope in 2.5 (and it’s already noted in docs).

0reactions
xak2000commented, Jan 23, 2019

@leopiccionia It’s noted in the API docs only. But my issue is about the guide, not API docs.

I’ll opened PR. Thanks.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found