mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
* [AAE-10533] Generic App shell for HxP applications * refactor * fix scss mixin path * remove forRoot in content-plugin * remove provided routers * revert router service * revert template usage * Added shell markdown * Move login component to content-plugin * Moved logic from app.component to app.service * remove upload-area from shell * cleaning * cleaning * update md * abstract preferences * allow to set shell parent route * fix preferencesService name * Fix for sidenav * Fix CR comments * [ci:force] * move translation service mock to aca-shared * fix e2e * Fix page title * remove drop area wrapper from whole application * Fix e2e * [ci:force] * Remove blank page from shell * Add upload files dialog * [ci:force] * Remove ExtensionsDataLoaderGuard from shell
17 lines
666 B
Markdown
17 lines
666 B
Markdown
---
|
|
Title: Shell
|
|
---
|
|
|
|
# Shell
|
|
|
|
[AppShellModule](../../app/src/app/app-shell/app-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](../../app/src/app/app-shell/app-shell.routes.ts)
|
|
|
|
If you would like to provide custom app guard, you can provide your own using [SHELL_AUTH_TOKEN](../../app/src/app/app-shell/app-shell.routes.ts)
|
|
|
|
## Shell Service
|
|
|
|
In order to use `shell`, you need to provide `SHELL_APP_SERVICE` which provides necessary options for shell component to work. |