Skip to content

Native Slot - please explain how to use #46

Open
@egucciar

Description

@egucciar

I am trying to pass in a slot via webcomponents but it appears as if the wbecomponent slot is ignored and Vue interprets it to be a Vue slot. I'd love to see an example of how this is supposed to work, given that right now it seems as though my slot is being picked up by vue and not the component-wrapper.

Something like
((in the dom)

<component-name>
Content
</component-name>

then

down the line:

image

i can see this is fully in shadowRoot and not even picked up as a 'slot' (which are rendered in litedom)

this is not even the content i am trying to pass from outside.

here's a bit of my chain:

<template>
  <div class="main">
    <content-header />
    <router-view>
      <slot>Default content 1</slot>
    </router-view>
  </div>
</template>

and the component from the router:

        <slot>
            <div>default content</div>
        </slot>

So passing in slot from router-view worked. but not in litedom. Also its ignoring content from the outer component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions