2015-06-24 02:10:07 -04:00
|
|
|
///<reference path="../dist/docs/typings/angular2/angular2.d.ts"/>
|
2015-06-16 13:46:12 -04:00
|
|
|
|
|
|
|
import {Component, bootstrap, View} from 'angular2/angular2'
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'my-app'
|
|
|
|
})
|
|
|
|
@View({
|
|
|
|
template: '<h1>Hello {{ name }}</h1>'
|
|
|
|
})
|
|
|
|
// Component controller
|
|
|
|
class MyAppComponent {
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
constructor() { this.name = 'Alice'; }
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap(MyAppComponent);
|