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:
@@ -52,19 +52,15 @@ This registering can be done, using Angular's multi-provider capabilities:
|
||||
import { EXTENSION_DATA_LOADERS } from '@alfresco/aca-shared';
|
||||
|
||||
@NgModule({
|
||||
imports: [...],
|
||||
declarations: [...],
|
||||
providers: [
|
||||
...
|
||||
{
|
||||
provide: EXTENSION_DATA_LOADERS,
|
||||
multi: true,
|
||||
useValue: myExtensionLoader
|
||||
},
|
||||
...
|
||||
],
|
||||
}
|
||||
]
|
||||
})
|
||||
export class MyExtensionModule {
|
||||
export class MyExtensionModule {}
|
||||
```
|
||||
|
||||
1. `MyExtensionModule` is the extension's entry module, which needs to be imported by the extensions.module.ts.
|
||||
|
Reference in New Issue
Block a user