@ViewChild('parentStuff', { read: ViewContainerRef }) container: ViewContainerRef;
constructor(
private _cfr: ComponentFactoryResolver
) {}
onChange(event): void {
// how to clear here the other components?
let comp = this._cfr.resolveComponentFactory(SubRule);
this.container.createComponent(comp);
}