angular2-odata
Advanced tools
Comparing version
@@ -48,7 +48,3 @@ "use strict"; | ||
getEntityUri(entityKey) { | ||
//ToDo: Fix string based keys | ||
if (!parseInt(entityKey)) { | ||
return this.config.baseUrl + "/" + this._typeName + "('" + entityKey + "')"; | ||
} | ||
return this.config.baseUrl + "/" + this._typeName + "(" + entityKey + ")"; | ||
return this.config.getEntityUri(entityKey, this._typeName); | ||
} | ||
@@ -55,0 +51,0 @@ handleResponse(entity) { |
@@ -57,8 +57,3 @@ import { URLSearchParams, Http, Response, Headers, RequestOptions } from '@angular/http'; | ||
protected getEntityUri(entityKey:string){ | ||
//ToDo: Fix string based keys | ||
if ( !parseInt(entityKey) ){ | ||
return this.config.baseUrl + "/"+this._typeName+"('"+entityKey+"')"; | ||
} | ||
return this.config.baseUrl + "/"+this._typeName+"("+entityKey+")"; | ||
return this.config.getEntityUri(entityKey, this._typeName); | ||
} | ||
@@ -65,0 +60,0 @@ |
{ | ||
"name": "angular2-odata", | ||
"version": "0.0.12", | ||
"version": "0.0.14", | ||
"description": "OData service for Angular2", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
Sorry, the diff of this file is not supported yet
48971
-1.2%824
-0.96%