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.