When do I add components to entryComponents? - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
When do I add components to entryComponents?

When do I add components to entryComponents?


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.bootstrapare 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 

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.