I'm using the ComponentFactoryResolver to dynamically create components.
const factory = this.componentFactoryResolver.resolveComponentFactory(FooComponent);
const component = this.templateRoot.createComponent(factory).instance;
Is it possible to conditionally apply directives here?
 
     
    