<p dir="auto">I decide to improve my site performance with angular 2 AoT compiler.<br>
As some requirements issue, i need loading my components dynamically in my ng2 app, when i start to build my app with AoT compiler, everythings goes well, but if i open the url, i got an error: "Runtime compiler is not loaded", after i doing some researches on the Internet, it's look like that Aot could not works with runtime compiler defaultly. Is there any workaround? Any input will be appreciated.<br>
Thanks.</p>
<p dir="auto">I'm trying to create component similar to this <a href="https://github.com/michaelbromley/angularUtils/tree/master/src/directives/uiBreadcrumbs">https://github.com/michaelbromley/angularUtils/tree/master/src/directives/uiBreadcrumbs</a></p>
<p dir="auto">What I'm doing at the moment is this <a href="https://gist.github.com/fxck/108dccf4529becf9bc92">https://gist.github.com/fxck/108dccf4529becf9bc92</a></p>
<p dir="auto">The problem is, that I can't really access route name from instruction, so I can't really create links for the crumbs, workaround was to duplicate name in data(<a href="https://gitter.im/angular/angular?at=564a3e5daca9bb7c6e508203" rel="nofollow">https://gitter.im/angular/angular?at=564a3e5daca9bb7c6e508203</a>) which is not ideal, but there seems to be no other way at the moment.</p>
<p dir="auto">Check <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115703104" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5180" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5180/hovercard" href="https://github.com/angular/angular/issues/5180">#5180</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117349733" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5335" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5335/hovercard" href="https://github.com/angular/angular/issues/5335">#5335</a> as well.</p>