I am seeking to do something similar to this example. It uses a helper directive to mark valid insertion points in the template for generated components. However, for my application, the container that should contain the new components (<ng-template adHost>) does not exist until the page is loaded and the user has clicked on a few things.
As far as I can tell, this completely breaks the directive. Angular has no idea where to insert the generated components, and doesn't insert them at all.
How do I work around this problem?
This is a stackblitz of their example.
This is a slightly modified stackblitz of what I'm trying to do.