{"action":"created","issue":{"url":"https://api.github.com/repos/DenysVuika/developing-with-angular/issues/38","repository_url":"https://api.github.com/repos/DenysVuika/developing-with-angular","labels_url":"https://api.github.com/repos/DenysVuika/developing-with-angular/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/DenysVuika/developing-with-angular/issues/38/comments","events_url":"https://api.github.com/repos/DenysVuika/developing-with-angular/issues/38/events","html_url":"https://github.com/DenysVuika/developing-with-angular/issues/38","id":304265612,"node_id":"MDU6SXNzdWUzMDQyNjU2MTI=","number":38,"title":"Fix `Runtime Compiler is not loaded` when building with AoT on the example code","user":{"login":"JLHwung","id":3607926,"node_id":"MDQ6VXNlcjM2MDc5MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/3607926?v=4","gravatar_id":"","url":"https://api.github.com/users/JLHwung","html_url":"https://github.com/JLHwung","followers_url":"https://api.github.com/users/JLHwung/followers","following_url":"https://api.github.com/users/JLHwung/following{/other_user}","gists_url":"https://api.github.com/users/JLHwung/gists{/gist_id}","starred_url":"https://api.github.com/users/JLHwung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLHwung/subscriptions","organizations_url":"https://api.github.com/users/JLHwung/orgs","repos_url":"https://api.github.com/users/JLHwung/repos","events_url":"https://api.github.com/users/JLHwung/events{/privacy}","received_events_url":"https://api.github.com/users/JLHwung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-12T07:31:00Z","updated_at":"2018-09-23T17:01:34Z","closed_at":null,"author_association":"NONE","body":"The [example code](https://github.com/DenisVuyka/developing-with-angular/blob/master/angular/plugins/src/app/sidebar/sidebar.component.ts) will throw `Runtime Compiler is not loaded` when compiled with Ahead-of-Time Angular Compiler (see https://github.com/angular/angular/issues/12885).\r\n\r\nSwitching to JIT mode might mitigate this error but JIT mode is less performant and thus is not recommended for production environment. As the plugin is lazily loaded and not precompiled, we should manually use `JitCompilerFactory` to create a jit compiler. The example is [here](https://github.com/angular/angular/blob/d7a727cc0728a61a707f2c109636c1fa077042c2/integration/dynamic-compiler/src/app.module.ts#L16) for the reference."},"comment":{"url":"https://api.github.com/repos/DenysVuika/developing-with-angular/issues/comments/423831073","html_url":"https://github.com/DenysVuika/developing-with-angular/issues/38#issuecomment-423831073","issue_url":"https://api.github.com/repos/DenysVuika/developing-with-angular/issues/38","id":423831073,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzgzMTA3Mw==","user":{"login":"DenysVuika","id":503991,"node_id":"MDQ6VXNlcjUwMzk5MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/503991?v=4","gravatar_id":"","url":"https://api.github.com/users/DenysVuika","html_url":"https://github.com/DenysVuika","followers_url":"https://api.github.com/users/DenysVuika/followers","following_url":"https://api.github.com/users/DenysVuika/following{/other_user}","gists_url":"https://api.github.com/users/DenysVuika/gists{/gist_id}","starred_url":"https://api.github.com/users/DenysVuika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenysVuika/subscriptions","organizations_url":"https://api.github.com/users/DenysVuika/orgs","repos_url":"https://api.github.com/users/DenysVuika/repos","events_url":"https://api.github.com/users/DenysVuika/events{/privacy}","received_events_url":"https://api.github.com/users/DenysVuika/received_events","type":"User","site_admin":false},"created_at":"2018-09-23T17:01:34Z","updated_at":"2018-09-23T17:01:34Z","author_association":"OWNER","body":"I suggest also checking this blog post for more ideas: https://blog.angularindepth.com/here-is-what-you-need-to-know-about-dynamic-components-in-angular-ac1e96167f9e"}}
{"actor":{"display_login":"DenysVuika"}}