Where can I get a list of all possible angular2 imports in ngModule?

846 views Asked by At

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.

1

There are 1 answers

0
SeleM On

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.