0

I following the quick guide tutorial here: https://angular.io/guide/quickstart

When I run the application, I get plenty of errors:

enter image description here

Why do I get this error messages?

app.component.ts:

import {Component} from 'angular2/core';

@Component({
    selector: 'my-app',
    template: '<h1>My First Angular 2 App</h1>'
})
export class AppComponent { }

main.ts:

import {bootstrap}    from 'angular2/platform/browser'
import {AppComponent} from './app.component'

bootstrap(AppComponent);

System.js:

<script>
  System.config({
    packages: {
      app: {
        format: 'register',
        defaultExtension: 'js'
      }
    }
  });
  System.import('app/main')
        .then(null, console.error.bind(console));
</script>
georgeawg
  • 48,608
  • 13
  • 72
  • 95
Bryan
  • 3,421
  • 8
  • 37
  • 77

0 Answers0