Skip to content

Update overlay attach dynamic component overload  #11671

@damyanpetev

Description

@damyanpetev

Since the ComponentFactory is deprecated and the new way of creating dynamic components in Angular is done through the viewContainerRef I think we should update our Overlay's attach with an overload that accepts a viewContainerRef. The current overload:

public attach(component: Type<any>, settings?: OverlaySettings,
moduleRef?: Pick<NgModuleRef<any>, 'injector' | 'componentFactoryResolver'>): string;

Should be deprecated - the sooner the better, so we can have a transition period before the old API is dropped.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions