#976 dynamically resolve form primitives

This commit is contained in:
Denys Vuika
2016-11-15 09:40:33 +00:00
committed by Mario Romano
parent 7ff6fd7150
commit 3092cfddaa
7 changed files with 116 additions and 75 deletions

View File

@@ -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*/);