search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Render Angular 5 component into DayPilotMonth cell template

Asked by Ricardo Mello
6 years ago.

Is is possible to render a angular component into DayPilotMonth cell template html?

I'm trying to pass nativeElement as HTML attribute, but it doesn't work. Only renders "[object HTMLElement]".

onBeforeCellRender = (args: any) => {
const factory = this.resolver.resolveComponentFactory(CellComponent);
const component = factory.create(this.injector);
component.instance.content = 'testContent';
component.changeDetectorRef.detectChanges();
args.cell.html = component.location.nativeElement;
}

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.