I'm building an app with laravel and VueJs and I was wondering how to pass a url parameter like the user slug or the user id to vuejs in a proper way to be able to use that parameter for making ajax requests?
For example when someone clicks on a link leading to
domain.com/user/john-appleseed
I want to make an ajax request within my vuejs application with the slug 'john-appleseed' as a parameter.
What is the "right/proper" way to this?
Thanks in advance!