title: Vue.JS routing with optional parameters and in any order
body: <p>I'd like to have query parameters in my Vue.JS application using <code>vue-router</code> like this:</p>
  
  <pre><code>http://localhost:8080/#/home/name=Alice&amp;surname=Smith
  </code></pre>
  
  <p>I've added this route to my <code>routes</code> in the <code>router.ts</code>:</p>
  
  <pre><code> routes: [{
      path: '/home/name=:name&amp;surname=:surname',
      name: 'home',
      component: Home
   }]
  </code></pre>
  
  <p>What I want to do additionally is the following two things:</p>
  
  <p>1) I want to be able to have the parameters <code>name</code> and <code>surname</code> in any order.
  E.g. these two URLs should lead to the same view:</p>
  
  <pre><code>http://localhost:8080/#/home/name=Alice&amp;surname=Smith
  http://localhost:8080/#/home/surname=Smith&amp;name=Alice
  </code></pre>
  
  <p>2) I want them to be optional as well.</p>
  
  <p>Is there a way to do these things? Thank you!</p>