Creating an array of a class Angular 2
<p>I need to create an array of a class using Angular 2 and TypeScript.</p>

<pre><code>import { ClassX } from '...';    

public ListX: ClassX[];
</code></pre>

<p>Once I have the list, I want to then add more empty instances of <code>ClassX</code></p>

<pre><code>action() {
  this.ListX.push(ClassX);
}
</code></pre>

<p>This would then add a new <code>ClassX</code> instance to the front end</p>