mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#976 dynamically resolve form primitives
This commit is contained in:
committed by
Mario Romano
parent
7ff6fd7150
commit
3092cfddaa
@@ -48,7 +48,7 @@ export class FormFieldComponent implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
if (this.field) {
|
||||
let componentType = this.formRenderingService.getComponentType(this.field.type);
|
||||
let componentType = this.formRenderingService.resolveComponentType(this.field);
|
||||
if (componentType) {
|
||||
let factory = this.componentFactoryResolver.resolveComponentFactory(componentType);
|
||||
this.componentRef = this.container.createComponent(factory/*, 0, this.injector*/);
|
||||
|
Reference in New Issue
Block a user