title: Set Object key as variable in Javascript with Vue Router
body: <p>I am trying to pass a variable as the param to vue-router so it can be set dynamically. Pretty much as the example below:</p>
  
  <pre><code>&lt;router-link :to="{ 
    name: notification.name,
    (notification.param_name): notification.param_value
  }"&gt;Blabla&lt;/router-link&gt;
  </code></pre>
  
  <p>I am not looking at setting the key like this: <code>var[notification.param_name]</code>.</p>
  
  <p>I suppose this question could be expanded to a more general problem, but I am having a hard time explaining it in another way. </p>