title: How to pass url parameters to Vuejs
body: <p>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?</p>
  
  <p>For example when  someone clicks on a link leading to</p>
  
  <pre><code>domain.com/user/john-appleseed
  </code></pre>
  
  <p>I want to make an ajax request within my vuejs application with the slug 'john-appleseed' as a parameter.</p>
  
  <p>What is the "right/proper" way to this?</p>
  
  <p>Thanks in advance!</p>