200dc00dbb
Closes #5815 Closes #5844 BREAKING CHANGE: `angular2/angular2` was removed. Use the correct import from one of the barrels. E.g. `angular2/core`, `angular2/platform/browser`, `angular2/common`, … Note: This only applies to JavaScript, Dart is not changed.
18 lines
323 B
TypeScript
18 lines
323 B
TypeScript
import {Component, View} from 'angular2/core';
|
|
import {bootstrap} from 'angular2/platform/browser';
|
|
|
|
@Component({
|
|
selector: 'my-app'
|
|
})
|
|
@View({
|
|
template: '<h1>Hello {{ name }}</h1>'
|
|
})
|
|
// Component controller
|
|
class MyAppComponent {
|
|
name: string;
|
|
|
|
constructor() { this.name = 'Alice'; }
|
|
}
|
|
|
|
bootstrap(MyAppComponent);
|