You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My POST service response is just a number (ie 1234). When I use restangular post method, I get an error Cannot create property ‘route’ on number ’1234’. I assume that Restangular tries to decorate a Javascript number and fails.
Is a number a valid response for a REST service and should Restangular be fixed for this kind of response ? If I fix the service and return nothing, Restangular post method works perfectly. Should I stick on this solution ?
Restangular 0.1.30 angular 2.4.10
The text was updated successfully, but these errors were encountered:
Hi,
My POST service response is just a number (ie
1234
). When I use restangular post method, I get an errorCannot create property ‘route’ on number ’1234’
. I assume that Restangular tries to decorate a Javascript number and fails.Is a number a valid response for a REST service and should Restangular be fixed for this kind of response ? If I fix the service and return nothing, Restangular post method works perfectly. Should I stick on this solution ?
Restangular 0.1.30
angular 2.4.10
The text was updated successfully, but these errors were encountered: