Summary: this tutorial will introduce you to
the do I add components to entryComponents ?
Introduction to add components to entryComponents?
When do I add components to entryComponents?
Most application developers won't need to add components to the entryComponents.
Angular adds certain components to entry components automatically. Components listed in
@NgModule.bootstrap
are added automatically. Components referenced in router configuration are added automatically. These two mechanisms account for almost all entry components.
If your app happens to bootstrap or dynamically load a component by type in some other manner, you must add it to
entryComponents
explicitly.
Although it's harmless to add components to this list, it's best to add only the components that are truly entry components.
If Was this tutorial helpful? so please share by social media
0 comments:
Post a Comment