Replies: 2 comments
-
Right now I just pass the meta as a prop and then listen for it from the layout as above. However, by omitting
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I realized I can use transformProps to set this up. Eg: transformProps: (props) => {
if ("meta" in props) {
window.meta = props.meta;
delete props.meta;
}
return props;
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make it easier for myself to specify title and meta tags. Right now, the docs recommends using
<teleport>
but I don't want to clutter my template with that in every single page. I'd rather send my meta data from my controller so that I can use it as suggested here. That way I can reuse the same data in the root template and my pages components.Maybe something like this:
Controllers:
Layout:
Beta Was this translation helpful? Give feedback.
All reactions