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 bootstrap component vs entry component

What’s the difference between a bootstrap component and an entry component?

A bootstrapped component is an entry component that Angular loads into DOM at the application launch and the other root components loaded dynamically into entry components.

The following is an example of specifying a bootstrapped component -
  declarations: [
  imports: [
  providers: [],
  bootstrap: [AppComponent]  // bootstrapped entry component
export class AppModule { }

The entry component is used to define components and created dynamically using the ComponentFactoryResolver.

The @NgModule.bootstrap property report the compiler that this is an entry component and it should generate code to bootstrap the application with this component.

For more information, see the above question - What Is an Entry Component?

I hope you enjoyed this post. So please write your thoughts in the below comment box. Thank you so much for reading this post.

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 - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like Powered by Blogger.
ASK Questions