import {Component, View, bootstrap} from 'angular2/angular2';

// Annotation section
@Component({
    selector: 'my-app'
})
@View({
    inline: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
    constructor() {
        this.name = 'Alice'
    }
}
bootstrap(MyAppComponent);
import {Component, Template, bootstrap} from 'angular2/angular2';

// Annotation section
@Component({
    selector: 'my-app'
})
@Template({
    inline: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
    constructor() {
        this.name = 'Alice'
    }
}
bootstrap(MyAppComponent);
Fix 'template' error replacing View with Template (suggested in blog comments)
Fix 'template' error replacing View with Template
(suggested in blog comments)
