mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-27 12:07:31 +00:00
Remove Angular 2 Music Store workarounds for an fx bug that was fixed in RC2
This commit is contained in:
@@ -13,11 +13,7 @@ export class AlbumDetails {
|
||||
public albumData: models.Album;
|
||||
|
||||
constructor(http: Http, routeParam: router.RouteParams) {
|
||||
// Workaround for RC1 bug. This can be removed with ASP.NET Core 1.0 RC2.
|
||||
let isServerSide = typeof window === 'undefined';
|
||||
let options: any = isServerSide ? { headers: { Connection: 'keep-alive' } } : null;
|
||||
|
||||
http.get('/api/albums/' + routeParam.params['albumId'], options).subscribe(result => {
|
||||
http.get('/api/albums/' + routeParam.params['albumId']).subscribe(result => {
|
||||
this.albumData = result.json();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user