title: Array of Arrays in TypeScript
body: <p>I'm trying to add an object array to an array in TypeScript (for an Angular 2 app). Here's a stripped down and simplified version of my code:</p>
  
  <p>mylist.ts:</p>
  
  <pre><code>export class myList {
      constructor(
          Number1: number,
          String1: string
      ){}
  }
  </code></pre>
  
  <p>mylist.component.ts:</p>
  
  <pre><code>import { myList } from './myList';
  
  export class ProductDetailComponent { 
  
      myNumber: number;
      myString: string;
  
      myList: Array&lt;myList&gt;;
  
      constructor() {
          this.myNumber = 10;
          this.myString = "some text";
      }
  
      addNavigation() {
          this.myList = [ new myList(this.myNumber, this.myString) ];
          console.log(JSON.stringify(this.myList));
      }
  
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[{}]
  </code></pre>
  
  <p>What am I doing wrong?</p>