Angular 2 Bootstrapping

Bootstrapping your angular 2 app. Angular 2 bootstraps with the root component, and we can provide our providers (DI).

angular 2 bootstrapping example
angular 2 bootstrapping

How to bootstrap your angular 2 application?

The answer is:


bootstrap​(TheRootComponent, [AService, <strong>provide</strong>(...)]);

Done