Incorporating Angular 2 and TypeScript, my goal is to construct an array of a specific class.
import { ClassX } from '...';
public ListX: ClassX[];
Subsequently, once the list is established, I aim to append additional empty instances of ClassX
action() {
this.ListX.push(ClassX);
}
Through this process, a fresh ClassX
instance will be introduced on the front end.