[ACA-2322] Sidenav - support dynamic components (#1066)

* dynamic components support

* subscribe to sidenav selector

* update module for extension

* sidenav selector

* support dynamic components definistion

* update docs

* stabilise tests

* Update src/app/components/sidenav/sidenav.module.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* Update src/app/components/sidenav/sidenav.module.ts

Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com>

* rename selector
This commit is contained in:
Cilibiu Bogdan
2019-04-12 12:39:05 +03:00
committed by Denys Vuika
parent bbdf3a9b27
commit 5bf77dfc81
10 changed files with 92 additions and 191 deletions

View File

@@ -186,4 +186,28 @@ Map the `/custom-route` in `app.routes.ts` as a child of `LayoutComponent` defin
![](../images/navigation-03.png)
### Rendering custom components
Navigation definition also supports custom components to be dynamically render. The schema for this is as follows:
```json
"navbar": [
{
"id": "app.navbar.primary",
"items": [
...
{
"id": "custom-component",
"component": "custom-menu-item"
}
...
]
}
]
```
Note that components must be declared as entryComponents under the app module.
For more information about the content of a custom page see [Document List Layout](/features/document-list-layout) section.