Jan 15, 2020 in Angular

What is bootstrapping in Angular?

1 Answer

0 votes
Jan 15, 2020

Bootstrapping in Angular is nothing but initializing, or starting the Angular app. Angular supports automatic and manual bootstrapping.

Automatic Bootstrapping: this is done by adding the ng-app directive to the root of the application, typically on the tag or tag if you want angular to bootstrap your application automatically. When Angular finds ng-app directive, it loads the module associated with it and then compiles the DOM.

Manual Bootstrapping: Manual bootstrapping provides you more control on how and when to initialize your Angular application. It is useful where you want to perform any other operation before Angular wakes up and compile the page.

Related questions

0 votes
Sep 18, 2019 in Angular
0 votes
Sep 13, 2019 in Angular