python ruby-programming-language Smalltalk Vue.js Knockoutjs TypeScript JavaScript, OOPs JavaScript Angular 7, Interview Questions Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 4 Angular 2 AngularJs 1.x NodeJs Perl Programming R Programming RequireJs Rust Programming Backbonejs closure programming language go-programming-language kotlin-programming-language
Angular entryComponents' components

Why does Angular need entryComponents?

Why does Angular need entryComponents?
The entry components improve the performance, smallest, fastest and reusable code of your production apps.

For example, if you want to load the smallest, fastest and reusable code in your production apps. These codes contain only the classes that you actually need and it should exclude the components that are never used, whether or not those components are declared in the apps.

Stayed Informed - What Are Components in Angular 5,4 and 2?

As you know, many libraries declare and export components you will never use in your app. If you do not reference them, the tree shaker drops these libraries and components from the final code package.

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [BrowserModule],
  providers: [],
  bootstrap: [AppComponent]  // bootstrapped entry component
})
export class AppModule { }


If a component is not in an entry component, the compiler skips compiling for this component.

I hope you enjoy this post. So please give your thoughts in the below comments box. Thank you!
ANIL SINGH

Hi there! Welcome to my blog. My name is Anil Singh. I'm a author of this blog. For more detail about me, kindly refer to this link..
My Blogs - http://code-sample.com and http://code-sample.xyz
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
www.code-sample.com/. Powered by Blogger.
ASK Questions