title: Activate method on router link click in Vue
body: <p>I am working on account removal on a Chrome extension and I have the following button:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;button @click=&quot;remove&quot; id=&quot;button_remove&quot; class=&quot;btn btn-default&quot; style=&quot;float: right;&quot;&gt;Remove Account&lt;/button&gt;
  </code></pre>
  <p><strong>JS</strong></p>
  <pre><code>methods:{
      remove(event){
         app.removeAccountData(url,apikey);
      }
  },
  </code></pre>
  <p>I also have this <code>router-link</code>:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;router-link :to=&quot;{ name: 'RemovedWId', params: { accountid: chosenAccount.apikey}}&quot; text=&quot;delete_account&quot;&gt;&lt;span class=&quot;glyphicon glyphicon-trash&quot; aria-hidden=&quot;true&quot; style=&quot;margin-top: 2px; cursor: pointer;&quot;&gt;&lt;/span&gt; Remove Account&lt;/router-link&gt;
  </code></pre>
  <p>Is there a way to use the <code>router-link</code> with the <code>JS</code> function?</p>