How do you manually bootstrap an application?
You can use ngDoBootstrap
hook for a manual bootstrapping of the application instead of using bootstrap array in @NgModule
annotation. This hook is part of DoBootstap
interface.
interface DoBootstrap {ngDoBootstrap(appRef: ApplicationRef): void;}
The module needs to be implement the above interface to use the hook for bootstrapping.
class AppModule implements DoBootstrap {ngDoBootstrap(appRef: ApplicationRef) {appRef.bootstrap(AppComponent); // bootstrapped entry component need to be passed}}
June 28, 2022
506
Read more
What is Angular Framework?
November 04, 2022
AngularWhat is a Angular module?
November 03, 2022
AngularWhat are the steps to use animation module?
October 31, 2022
Angular