mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5106] fix stencil registration (#5694)
* customize services on the module level * improved service registration
This commit is contained in:
@@ -67,6 +67,17 @@ export abstract class DynamicComponentMapper {
|
||||
this.types[type] = resolver;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register multiple components
|
||||
*/
|
||||
register(components: { [key: string]: DynamicComponentResolveFunction }, override: boolean = false) {
|
||||
if (components) {
|
||||
for (const type of Object.keys(components)) {
|
||||
this.setComponentTypeResolver(type, components[type], override);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the component type that is needed to render a form field.
|
||||
* @param model Form field model for the field to render
|
||||
|
Reference in New Issue
Block a user