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

Object inside template header #11

Closed
Overx opened this issue Jul 28, 2021 · 1 comment
Closed

Object inside template header #11

Overx opened this issue Jul 28, 2021 · 1 comment

Comments

@Overx
Copy link

Overx commented Jul 28, 2021

How do I access the object inside the loop in a template header? I would like to manipulate the story data. Thx

@dnldsht
Copy link
Owner

dnldsht commented Aug 18, 2021

version 0.9.3 added this feature

you can do it like this

<template>
  <Stories :stories="items">
    <template #header="{story}">
      <story-header :story="story" />
    </template>
  </Stories>
</template>

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

2 participants