mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
reduce duplication and code improvements (#1707)
* reduce code duplication * reduce duplication, fix license headers * simplify code * typings fixes * update tests * minor fixes * markdown fixes * revert changes
This commit is contained in:
@@ -75,27 +75,27 @@ export interface ViewNodeExtras {
|
||||
|
||||
```typescript
|
||||
// app.routes.ts
|
||||
...
|
||||
{
|
||||
path: 'custom-path',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: CustomComponent
|
||||
},
|
||||
{
|
||||
path: 'view/:nodeId',
|
||||
outlet: 'viewer',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: './components/viewer/viewer.module#AppViewerModule'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
...
|
||||
export const APP_ROUTES: Routes = [
|
||||
{
|
||||
path: 'custom-path',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: CustomComponent
|
||||
},
|
||||
{
|
||||
path: 'view/:nodeId',
|
||||
outlet: 'viewer',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: './components/viewer/viewer.module#AppViewerModule'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
```typescript
|
||||
|
Reference in New Issue
Block a user