title: Access the query string in VueJS
body: <p>I've just started using VueJS and I'm really liking it! :) I would like to save the values in the querystring to a VueJS variable - this is something super simple in handlebars + express, but seems more difficult in Vue.</p>
  
  <p>Essentially I am looking for something similar to -</p>
  
  <pre><code>http://localhost:8080/?url=http%3A%2F%2Fwww.fake.co.uk&amp;device=all
  
  
  const app = new Vue({
      ...
      data: {
          url: req.body.url,
          device: req.body.device
      }
      ...
  });
  </code></pre>
  
  <p>Google seemed to point me to <code>vue-router</code>, but I'm not sure if that's really what I need/how to use it. I'm currently using express to handle my backend logic/routes.</p>
  
  <p>Thanks,</p>
  
  <p>Ollie</p>