title: Pass Vue query parameter from current route to router-link
body: <p>I know this cannot be this difficult, all I want to do is detect the query parameter and pass it to my component. What do I have to do to access router from a component in Vue?</p>
  <pre><code>&lt;router-link :to=&quot;{ path: '/', query: { myQuery: /*query parameter here/* } }&quot; &gt;Go There&lt;/router-link&gt;
  </code></pre>
  <p>No matter what I do I can't figure it out. I've tried everything I can find online, and for some reason in Vue &quot;this&quot; doesn't exist, and I'm literally ready to give up and go back to Angular.</p>
  <p>Seriously, I can't even access it inside the  tag, and importing the actual router from the routing file does nothing.</p>
  <p>How do I make this happen? I feel like it shouldn't be this complicated just to get query parameters from the url in ANY framework. I've been reading manuals all day, can somebody please just help me out here?</p>