You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Inertia.js with Laravel (configuration done by a starter kit).
I want to allow users to go back to a previous page upon a button click (Laravel, Vue.js and Inertia)
For this, I need to add this configuration in app.js:
app.config.globalProperties.$route=route
But then, I am getting an error whenever I try to use it in the form of route.go(-1), route.back()and similar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Inertia.js with Laravel (configuration done by a starter kit).
I want to allow users to go back to a previous page upon a button click (Laravel, Vue.js and Inertia)
For this, I need to add this configuration in app.js:
But then, I am getting an error whenever I try to use it in the form of
route.go(-1)
,route.back()
and similar.What am I missing ?
Billal Begueradj
Beta Was this translation helpful? Give feedback.
All reactions