title: How to compile Typescript with Angular 2?
body: <p>I get the following errors: </p>
  
  <pre><code>Error:(7, 5) TS1148: Cannot compile modules unless the '--module' flag is provided.
  Error:(7, 40) TS2307: Cannot find module 'angular2/angular2'.
  Error:(8, 5) TS1205: Decorators are only available when targeting ECMAScript 5 and higher.
  Error:(12, 11) TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning.
  </code></pre>
  
  <p>Not sure what to do. I've trying out the quickstart tutorial on Angular site, below is my code. I think something needs to be done in conjuction with typescript, but what? </p>
  
  <p><strong>app.ts</strong></p>
  
  <pre><code>import {Component, bootstrap} from 'angular2/angular2';
  @Component({
      selector: 'my-app',
      template: '&lt;h1&gt;My First Angular 2 App&lt;/h1&gt; &lt;p&gt;hello&lt;/p&gt;'
  })
  class AppComponent { }
  </code></pre>
  
  <p>bootstrap(AppComponent);</p>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Angular 2 QuickStart&lt;/title&gt;
      &lt;script src="https://code.angularjs.org/tools/system.js"&gt;&lt;/script&gt;
      &lt;script src="https://code.angularjs.org/tools/typescript.js"&gt;&lt;/script&gt;
      &lt;script src="https://code.angularjs.org/2.0.0-alpha.44/angular2.dev.js"&gt;&lt;/script&gt;
      &lt;script&gt;
        System.config({
          transpiler: 'typescript',
          typescriptOptions: { emitDecoratorMetadata: true }
        });
        System.import('./app.ts');
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;my-app&gt;loading...&lt;/my-app&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>