How to instantiate and apply directives programmatically?
<p>I know that in ng2 we have <code>ComponentFactoryResolver</code> that can resolve factories that we can apply to a <code>ViewContainerRef</code>.</p>

<p>But, is there something similar for directives? a way to instantiate them and apply them to the projected content from a component?</p>