Here is my first simple Hello World
angular 2 app from Angular 2 quick start guide.
import {Component} from \'angular2/core\';
import {bootstrap} fr
Actually, AppComponent is expected to extend Type. So use the following:
// app.component.ts
import { Component, Type } from '@angular2/core';
@Component({
...
...
})
export class AppComponent extends Type {}
This will also follow the expected convention by ng2 for AppComponent (to be bootstrapped).
I am not sure why they didn't cover it in the ng2 tutorials, probably they might be targeting to simplify the initial learning, as it runs even without the extends part.
This works perfectly fine in WebStorm/IntelliJ.
Edit: Alternate solution is to update to Webstorm v2016.2 (which is stable at the time of this comment).