Dynamically loading directive

I’m running Angular 2 and I’m trying to figure out how to dynamically load a directive into an existing element. The use case is I have different behaviors and depending on a condition I want to load different directives. I’ve looked at DynamicComponentLoader but that only seems to be able to load components (as opposed to pure directives) and only onto id defined locations.

Possible? If so, how do I do it?

2 thoughts on “Dynamically loading directive