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.

Missing content passed to a dynamic list of slots

See original GitHub issue

Version

2.5.17

Reproduction link

https://jsfiddle.net/Lytuc02x/6/

Steps to reproduce

N/A

What is expected?

The #line-1 and #line-2 elements should contain the First line and respectively Second line texts.

What is actually happening?

The mentioned elements are empty.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AngCosmincommented, Nov 7, 2018

Do this:

<slot :name="'line-' + index"></slot>

0reactions
Justineocommented, Nov 7, 2018

A new feature request would be fine. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tips to Supercharge Your Slots (Named, Scoped, and Dynamic)
We use the v-for to iterate over each of the slot names. The line v-slot:[slotName] then picks up on the new value of...
Read more >
Slots - Vue.js
A <slot> outlet without name implicitly has the name "default". In a parent component using <BaseLayout> , we need a way to pass...
Read more >
vue.js - Only show slot if it has content - Stack Overflow
Here is an example of how I am passing the "row" to the scoped slot, in my case the row contains a type...
Read more >
Phoenix.Component — Phoenix LiveView v0.18.3 - HexDocs
Slots enable further customization of the rendered HTML, as the caller can pass the function component HEEx content they want the component to...
Read more >
Shadow DOM slots, composition
We could try to analyze the element content and dynamically copy-rearrange ... Anonymous renders if there's no slot="username" in light DOM.
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