0

I am trying to load a component inside a DIV on my Site. When I run this Code:

renderPopoverContent(event: Termine.FullCalendarEvent) {
    let injector = ReflectiveInjector.resolveAndCreate([
        { provide: 'termin', useValue: event }            
    ]);
    this._dynamicComponentLoader.loadAsRoot(PopoverComponent, '#popover_' + event.id, injector);
}

I get this error to Console

No provider for ViewUtils!

I am using the latest Angular2 Version (2.0.0-rc.3)

Weissvonnix
  • 731
  • 7
  • 23

1 Answers1

1

DynamicComponentLoader is deprecated

Use ComponentResolver and ViewContainerRef directly.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
null canvas
  • 10,201
  • 2
  • 15
  • 18