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 access Custom Props from child pages #21976

Closed
devzakir opened this issue Jul 6, 2023 · 2 comments · Fixed by #21977
Closed

How to access Custom Props from child pages #21976

devzakir opened this issue Jul 6, 2023 · 2 comments · Fixed by #21977

Comments

@devzakir
Copy link
Contributor

devzakir commented Jul 6, 2023

Environment

Nuxi 3.6.1


  • Operating System: Darwin
  • Node Version: v18.16.1
  • Nuxt Version: 3.6.1
  • Nitro Version: 2.5.2
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: runtimeConfig, app, css, modules, plugins, content, googleFonts, devtools
  • Runtime Modules: @nuxtjs/tailwindcss@6.8.0, @nuxt/content@2.7.0, @nuxt/image@1.0.0-rc.1, @nuxtjs/google-fonts@3.0.1
  • Build Modules: -

Reproduction

I have tried to access the categories and productName but couldn't. Here is the screenshot of my code.

image

Describe the bug

I have tried to access the categories and productName but couldn't. Here is the screenshot of my code.

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

Would you provide a reproduction? 🙏

@devzakir
Copy link
Contributor Author

devzakir commented Jul 6, 2023

Thanks @danielroe for checking out. I was able to solve it by calling $attrs.categories, I have updated the docs and created a PR, here is the link

#21977

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants