Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 2 rc4: DynamicComponentLoader deprecated

I am upgrading my Angular 2 application for beta.14 to rc.4.

I get a deprecated warning on DynamicComponentLoader in @angular/core.

What is the new Class to be used? Are there any examples available?

like image 652
mvermand Avatar asked Oct 19 '22 05:10

mvermand


1 Answers

It has been deprecated. Instead ComponentResolver is used. Refer the first answer in this link Angular 2 dynamic tabs with user-click chosen components.

Refer this too : http://blog.lacolaco.net/post/dynamic-component-creation-in-angular-2/

like image 166
monica Avatar answered Oct 21 '22 01:10

monica