title: Fetch query string value from URL with NuxtJS and AsyncData method
body: <p>I try to fetch value of the name parameter in URL: <a href="http://fakelocalhost:3000/page?name=test" rel="nofollow noreferrer">http://fakelocalhost:3000/page?name=test</a></p>
  
  <p>I'm using <strong>NuxtJS</strong> (v2.11.0) and <strong>TypeScript</strong>, with <em>nuxt-property-decorator</em> package (v2.5.0).</p>
  
  <p>But, I get an undefined result with <code>console.log(params.name)</code>.</p>
  
  <p>Here, my full TS code:</p>
  
  <pre><code>&lt;script lang="ts"&gt;
    import {
      Component,
      Vue
    } from "nuxt-property-decorator";
  
    @Component({
      asyncData({ params  }) {
        console.log(params.name);
      }
    })
    export default class extends Vue {}
  &lt;/script&gt;
  </code></pre>