import {Component, View} from 'angular2/core'; import {bootstrap} from 'angular2/platform/browser'; @Component({ selector: 'my-app' }) @View({ template: '

Hello {{ name }}

' }) // Component controller class MyAppComponent { name: string; constructor() { this.name = 'Alice'; } } bootstrap(MyAppComponent);