-
I'd like to have a conditional trigger on a layout when a certain page is accessed, so I need to access the current page name. I tried accessing it with I'm using Rails with Vue 2, and JsFromRoutes to handle Rails routes. |
Beta Was this translation helpful? Give feedback.
Answered by
domi91c
May 23, 2021
Replies: 1 comment
-
This issue was that I should have been using |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
domi91c
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was that I should have been using
this.$page.component
instead ofthis.$inertia.page.component
.