Recently I was looking at official release information about Angular 9 and figured out that Angular team have decided to deprecate entryComponents array which was crucial part of NgModule for creation of dynamic components like modal, advertisement banners etc. If you want to read about his deprecation you can check it here.
In versions before Angular 9 if we tried to create any component that is not party of entryComponents dynamically we used to get following error.
No component factory found for ModalComponent. Did you add it to @NgModule.entryComponents?
To understand this, we need to understand why Angular needed entryComponents array separately before Angular 9 to create these components dynamically. The reasons are following.
So now we understand, why Angular needed entryComponents array till version 8. But what happened from version 9 that made it unnecessary to use entryComponents array?
#web #javascript #framework #typescript #angular