From 0163c3e6e4d2dd86b25ea8905121506b0cd3e6a4 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 9 Jan 2019 13:36:54 +0000 Subject: [PATCH] update extension registration docs --- docs/extending/registration.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/extending/registration.md b/docs/extending/registration.md index 285ffa419..d0afcecf4 100644 --- a/docs/extending/registration.md +++ b/docs/extending/registration.md @@ -1,6 +1,3 @@ ---- ---- - # Registration You can use `ExtensionService` to register custom components, authentication guards, @@ -16,7 +13,7 @@ and use the following snippet to register custom content: import { ExtensionsModule, ExtensionService } from '@alfresco/adf-extensions'; @NgModule({ - imports: [ ExtensionsModule.forChild() ] + imports: [ ExtensionsModule ] declarations: [ MyComponent1, MyLayout ], entryComponents: [ MyComponent1, MyLayout ] }) @@ -41,9 +38,6 @@ export class MyExtensionModule { } ``` -Use `ExtensionsModule.forChild()` when importing into the child modules, -and `ExtensionsModule.forRoot()` for the main application module. -

According to Angular rules, all components that are created dynamically at runtime need to be registered within the `entryComponents` section of the NgModule.