From 9cb6bb8535ba7744a462526f095c3c66e175e9d0 Mon Sep 17 00:00:00 2001 From: Bogdan Bogdanov Date: Wed, 6 May 2020 21:02:26 +0300 Subject: [PATCH] docs: update dynamic-component loading guide (#36959) The 'entryComponents' array is no longer a special case for dynamic component loading because of the Ivy compiler. PR Close #36959 --- aio/content/guide/dynamic-component-loader.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/aio/content/guide/dynamic-component-loader.md b/aio/content/guide/dynamic-component-loader.md index 43c565dd06..37a693f43c 100644 --- a/aio/content/guide/dynamic-component-loader.md +++ b/aio/content/guide/dynamic-component-loader.md @@ -131,22 +131,6 @@ The `createComponent()` method returns a reference to the loaded component. Use that reference to interact with the component by assigning to its properties or calling its methods. -{@a selector-references} - - -#### Selector references - -Generally, the Angular compiler generates a `ComponentFactory` -for any component referenced in a template. However, there are -no selector references in the templates for -dynamically loaded components since they load at runtime. - -To ensure that the compiler still generates a factory, -add dynamically loaded components to the `NgModule`'s `entryComponents` array: - - - - {@a common-interface}