mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-36614 new provideShell api (#11006)
This commit is contained in:
@@ -9,9 +9,19 @@ This module provides the main layout for the application, allowing you to define
|
||||
Passed routes are going to be attached to shell main route.
|
||||
|
||||
```typescript
|
||||
import { provideShellRoutes } from '@alfresco/adf-core/shell';
|
||||
import { provideShell } from '@alfresco/adf-core/shell';
|
||||
|
||||
provideShellRoutes([/*Your Routes*/])
|
||||
provideShell(
|
||||
{
|
||||
routes: [],
|
||||
appService: AppService,
|
||||
authGuard: AuthGuard,
|
||||
navBar: {
|
||||
minWidth: 0,
|
||||
maxWidth: 100
|
||||
}
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
If you would like to provide custom app guard, you can provide your own using `SHELL_AUTH_TOKEN`.
|
||||
|
Reference in New Issue
Block a user