import {Component, View, NgFor} from 'angular2/angular2'; import {Http} from 'angular2/http'; import {ObservableWrapper} from 'angular2/src/facade/async'; @Component({selector: 'http-app'}) @View({ directives: [NgFor], template: `

people

` }) export class HttpCmp { people: Object; constructor(http: Http) { ObservableWrapper.subscribe(http.get('./people.json'), res => this.people = res.json()); } }