Hi Debbie,
Thanks for this article. I tried head() and then thought ih would be very helpful to be able to use the current title (or something else) in the app's title bar (in the main layout).
Is that possible or totally the wrong way?
Thanks!
Dan
Helping you all learn tech, AI, MCPs and more. International speaker, writer, teacher, open source contributor, AI, MCPs, Agentic workflows, playwright, vue, nuxt, react
Location
Spain
Education
Post Grad in Spanish, Frontend Tech Degree at OpenClassrooms, Fullstack Tech Degree at Treehouse
Hi Debbie,
Thanks for this article. I tried head() and then thought ih would be very helpful to be able to use the current title (or something else) in the app's title bar (in the main layout).
Is that possible or totally the wrong way?
Thanks!
Dan
Hey Dan, not sure I fully understand what you want to do. Feel free to send me an example or a screenshot.
OK thanks!
I have a PWA which always shows a title bar. This is some of the code in layout.php:
I'd like the
{{ title }}to be whatever has been set with head().Hey Dan 👋🏻
AFAIK you can't retrieve the document's title from
vue-metadirectly :/