I am currently setting up a basic Angular 2 (beta 2) app using TypeScript. I have the code for app.ts
file taken from Angular's most recent setup guide
import {Component, View, bootstrap} from 'angular2/angular2';
@Component({
selector: 'app'
})
@View({
template: `
<div></div>
`
})
class AppComponent {
constructor() {}
}
bootstrap(AppComponent);
However, when trying to compile it, I encounter an error message:
Error TS2307: Cannot find module 'angular2/angular2'.
Alternately, if I use a different format from other sources with angular2/core
instead of angular2/angular2
, like this:
import {Component, View, bootstrap} from 'angular2/core';
I receive the following error:
Error TS2305: Module '"node_modules/angular2/core"' has no exported member 'bootstrap'.
What steps should I take to import all these modules successfully?