<p dir="auto">I'm trying to work out how to compile all of my TypeScript components to one JavaScript file. My app will have 50-100 components, so it's obviously not feasible to load them individually using <code class="notranslate">System.import()</code>.</p>
<p dir="auto">Concatenating compiled JavaScript files doesn't work because of the duplicate code. Concatenating the TypeScript files almost works, except for all the duplicate <code class="notranslate">import</code> symbols.</p>
<p dir="auto">How to do this?</p>
<p dir="auto">Hello,</p>
<p dir="auto">i want to send an event from ngOnDestroy but that is not possible.</p>
<p dir="auto">The Problem is shown in the following demo.</p>
<p dir="auto"><a href="https://plnkr.co/edit/4XVaVWJ97SYnpIjwQG82?p=preview" rel="nofollow">https://plnkr.co/edit/4XVaVWJ97SYnpIjwQG82?p=preview</a></p>
<p dir="auto">Is it possible to send an event from "ngOnDestroy" in context with the dynamic component loader?</p>
<p dir="auto">Thanks</p>