title: how to pass array as an parameter using routing in angular 4
body: <p>I am working on an angular project I want pass an array object as an parameter to another page through rouuting my function is as follows</p>
  
  <pre><code>Goto(item)
  {
  
      console.log(item.numtopics);
      this.router.navigate(['/numbersystem'],  { queryParams: item.numtopics});
  
  } 
  </code></pre>
  
  <p>and getting the data as follows</p>
  
  <pre><code>constructor(private route: ActivatedRoute) {
      this.route.queryParams.subscribe( param =&gt; {
  
  
          console.log(param);
      });
  
      }
  </code></pre>
  
  <p>but in console I am getting data like this </p>
  
  <pre><code>{0: "[object Object]", 1: "[object Object]", 2: "[object Object]"}
  </code></pre>
  
  <p>I am not getting the array data properly </p>
  
  <p>any help.
  Thank You !!</p>