title: How to access routing parameters in Vue.js - Nuxt - TypeScript application?
body: <p>I'm building a website that is based on <a href="https://github.com/nuxt-community/typescript-template" rel="nofollow noreferrer">Nuxt TypeScript Starter</a> template. I've created a dynamically routed page _id.vue inside of my pages folder and I want to have access to that id property inside of my TS class. 
  I can access it in my template by writing <code>{{$route.params.id}}</code> but when I try to reference <code>$route</code> inside of the class I get an error:</p>
  
  <blockquote>
    <p>error TS2304: Cannot find name '$route'.</p>
  </blockquote>