Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions packages/angular/src/library/jsonforms.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
import maxBy from 'lodash/maxBy';
import {
ComponentFactoryResolver,
Directive,
Input,
OnInit,
Expand Down Expand Up @@ -76,7 +75,6 @@ export class JsonFormsOutlet

constructor(
private viewContainerRef: ViewContainerRef,
private componentFactoryResolver: ComponentFactoryResolver,
private jsonformsService: JsonFormsAngularService
) {
super();
Expand Down Expand Up @@ -128,11 +126,9 @@ export class JsonFormsOutlet
bestComponent = renderer.renderer;
}

const componentFactory =
this.componentFactoryResolver.resolveComponentFactory(bestComponent);
this.viewContainerRef.clear();
const currentComponentRef =
this.viewContainerRef.createComponent(componentFactory);
this.viewContainerRef.createComponent(bestComponent);

if (currentComponentRef.instance instanceof JsonFormsBaseRenderer) {
const instance =
Expand Down
Loading