From aca3207d2726dad90633d4259e51f0a01c168cf2 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Mon, 13 Jul 2020 17:45:03 +0300 Subject: [PATCH] docs: add a description to component-replacement.md --- docs/en/UI/Angular/Component-Replacement.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/UI/Angular/Component-Replacement.md b/docs/en/UI/Angular/Component-Replacement.md index 4a461ae431..fd34fcbae7 100644 --- a/docs/en/UI/Angular/Component-Replacement.md +++ b/docs/en/UI/Angular/Component-Replacement.md @@ -80,6 +80,8 @@ export class AppComponent { } ``` +> If you like to replace a layout component at runtime (e.g: changing the layout by pressing a button), pass the second parameter of the AddReplaceableComponent action as true. DynamicLayoutComponent loads content using a router-outlet. When the second parameter of AddReplaceableComponent is true, the route will be refreshed, so use it with caution. Your component state will be gone and any initiation logic (including HTTP requests) will be repeated. + ### Layout Components ![Layout Components](./images/layout-components.png)