Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use slots? #63

Closed
sven-ra opened this issue Feb 20, 2019 · 1 comment
Closed

How to use slots? #63

sven-ra opened this issue Feb 20, 2019 · 1 comment

Comments

@sven-ra
Copy link

sven-ra commented Feb 20, 2019

How do I use the slots.

Currently trying like this, but it does not work:

      <light-box
        :images="lightBoxImages"
      >
        <template v-slot="close">
          <h2>TEST</h2>
        </template>
      </light-box>
@sven-ra
Copy link
Author

sven-ra commented Feb 26, 2019

I had a silly typo. Named slot syntax is actually like this: <template v-slot:close>.

@sven-ra sven-ra closed this as completed Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant