2016-03-08 16:36:48 -05:00
|
|
|
import {Component} from 'angular2/core';
|
2015-12-11 16:31:30 -05:00
|
|
|
import {bootstrap} from 'angular2/platform/browser';
|
2015-06-16 13:46:12 -04:00
|
|
|
|
|
|
|
@Component({
|
2016-03-08 16:36:48 -05:00
|
|
|
selector: 'my-app',
|
2015-06-16 13:46:12 -04:00
|
|
|
template: '<h1>Hello {{ name }}</h1>'
|
|
|
|
})
|
|
|
|
// Component controller
|
|
|
|
class MyAppComponent {
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
constructor() { this.name = 'Alice'; }
|
|
|
|
}
|
|
|
|
|
2015-10-01 22:49:45 -04:00
|
|
|
bootstrap(MyAppComponent);
|