N
Nuxt17mo ago
Fabian B.

Getting the name of the currently active layout inside a component

I want to get the name of the current active layout in some component. So that I can do things like if (layout === 'xxx') { ... }. Since I am defining it in definePageMeta in the page's component, maybe there is a composable that I can use to retrieve the layout name inside a child component.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server