So we have a code like this to bootstrap an app.
@NgModule({
imports: [ BrowserModule ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
We import BrowserModule. But what is BrowserModule? Api reference doesn't give much explanation. What for do we use it. And what modules can we use more, except BrowserModule ? I want to understand angular2 on a deeper level. That's why asking those questions.
BrowserModule
provides services that are essential to launch and run a browser app, if it wont be imported your application would throw an error and would not run on any browser. For further clarifications and common questions you may have answers here and here.