Make 'fetchdata' components in templates compatible with latest TypeScript compiler

This commit is contained in:
SteveSandersonMS
2016-11-29 19:10:48 +00:00
parent 28b8136fa6
commit 939e0aeee0
5 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ export class FetchDataComponent {
constructor(http: Http) {
http.get('/api/SampleData/WeatherForecasts').subscribe(result => {
this.forecasts = result.json();
this.forecasts = result.json() as WeatherForecast[];
});
}
}