8000 In AngularSpa template, log any FetchData errors but don't stop prere… · aspnet/JavaScriptServices@4ba0358 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 4ba0358

Browse files
In AngularSpa template, log any FetchData errors but don't stop prerendering completely
1 parent 721e3c4 commit 4ba0358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/AngularSpa/ClientApp/app/components/fetchdata/fetchdata.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class FetchDataComponent {
1111
constructor(http: Http, @Inject('ORIGIN_URL') originUrl: string) {
1212
http.get(originUrl + '/api/SampleData/WeatherForecasts').subscribe(result => {
1313
this.forecasts = result.json() as WeatherForecast[];
14-
});
14+
}, error => console.error(error));
1515
}
1616
}
1717

0 commit comments

Comments
 (0)
0