IgniteUI / igniteui-angular-samples

Ignite UI for Angular demos for all available components and features
https://bit.ly/2L19rhp
36 stars 25 forks source link

[IgxOverlay]: update attach method #3328

Closed RivaIvanova closed 1 year ago

RivaIvanova commented 1 year ago

Description

According to the CHANGELOG here:

attach method overload accepting ComponentFactoryResolver (trough NgModuleRef-like object) is now deprecated in line with API deprecated in Angular 13. New overload is added accepting ViewComponentRef that should be used instead.

Currently, all samples use the deprecated attach method when passing an Angular component as a first argument.

Steps to reproduce

  1. Open, for example, this demo in StackBlitz and observe the ts file.

Expected result

The samples should use the attach(component, viewContainerRef, settings?) method.