I need to create an array of a class using Angular 2 and TypeScript.
import { ClassX } from '...';
public ListX: ClassX[];
Once I have the list, I want to then add more empty instances of ClassX
action() {
this.ListX.push(ClassX);
}
This would then add a new ClassX instance to the front end