I'm trying to boot up basic Angular 2 (beta 2) app with TypeScript. I have the following app.ts file (copied from Angular's latest setup guide)
import {Component, View, bootstrap} from 'angular2/angular2';
@Component({
selector: 'app'
})
@View({
template: `
<div></div>
`
})
class AppComponent {
constructor() {}
}
bootstrap(AppComponent);
but when I try to compile it, I get error
Error TS2307: Cannot find module 'angular2/angular2'.
If I instead use the format found on some other resources with angular2/core instead of angular2/angular2 like
import {Component, View, bootstrap} from 'angular2/core';
I get error
Error TS2305: Module '"node_modules/angular2/core"' has no exported member 'bootstrap'.
What should I do to import all of them?