@NgModule is that new?
<p>I'm learning angular 2 via a book that I just bought (become a ninja with angular 2).</p>

<p>I'm also going through the official doc in parallel but when doing the quickstart from the official site I see they are talking about <code>@NgModule</code> while there is no mention of it in the book.</p>

<p>So I would like to know if the official doc is up to date and if indeed NgModule is a new thing. I think I read somewhere that the doc wasn't up to date, so I wouldn't like to use something that is soon to be deprecated.</p>

<p>Here is how they are bootstrapping the app in the book :</p>

<pre><code>import { bootstrap } from '@angular/platform-browser-dynamic';
import PonyRacerAppComponent  from './app/ponyracer-app.component';

bootstrap(PonyRacerAppComponent).catch(err =&gt; console.log(err)); 
</code></pre>

<p>And here is how they are bootstrapping the app in the official quick start :</p>

<pre><code>import { NgModule }      from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import
       { AppComponent }  from './app.component';

@NgModule({
  imports: [ BrowserModule ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }
</code></pre>

<p>then in another file :</p>

<pre><code>// The browser platform with a compiler
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

// The app module
import { AppModule } from './app.module';

// Compile and launch the module
platformBrowserDynamic().bootstrapModule(AppModule);
</code></pre>