mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-10533] Generic App shell for HxP applications (#8002)
* [AAE-10533] Generic App shell for HxP applications * Clean code and add public_api for shell
This commit is contained in:
17
lib/core/shell/README.md
Normal file
17
lib/core/shell/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# @alfresco/adf-core/shell
|
||||
|
||||
Secondary entry point of `@alfresco/adf-core`. It can be used by importing from `@alfresco/adf-core/shell`.
|
||||
|
||||
# Shell
|
||||
|
||||
[ShellModule](./src/lib/shell.module.ts) is designated as a main layout for the application.
|
||||
|
||||
I order to attach routes to appShell, `withRoutes(routes: Routes | AppShellRoutesConfig)` method should be used.
|
||||
|
||||
Passed routes are going to be attached to [shell main route](./src/lib/shell.routes.ts)
|
||||
|
||||
If you would like to provide custom app guard, you can provide your own using [SHELL_AUTH_TOKEN](./src/lib/shell.routes.ts)
|
||||
|
||||
## Shell Service
|
||||
|
||||
In order to use `shell`, you need to provide [SHELL_APP_SERVICE](./src/lib/services/shell-app.service.ts) which provides necessary options for shell component to work.
|
Reference in New Issue
Block a user