import {Component} from 'angular2/angular2'; import {Http, HTTP_PROVIDERS, Response} from 'angular2/http'; @Component({ selector: 'ngcli-sample01-app', providers: [HTTP_PROVIDERS], templateUrl: ... }) export class MyApp { pet: IPet; constructor(private http: Http) { this.http.get('/api/v1/pets/001.json') .map((response: Response) => response.json() as IPet) .subscribe(pet => { this.pet = pet; cons