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
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
doing an automagical conversion of date iso strings in json to date objects results in 10%-20% perf penalty and is often unwanted. It would be better to provide a way to register transformation functions on $resource instances, so that users can opt-in to conversions like this one.
The text was updated successfully, but these errors were encountered:
IgorMinar
added a commit
to IgorMinar/angular.js
that referenced
this issue
Mar 28, 2012
Breaks angular.fromJson which doesn't deserialize date strings into date objects.
This was done to make fromJson compatible with JSON.parse.
If you do require the old behavior - if at all neeeded then because of
json deserialization of XHR responses - then please create a custom
$http transform:
$httpProvider.defaults.transformResponse.push(function(data) {
// recursively parse dates from data object here
// see code removed in this diff for hints
});
Closesangular#202
doing an automagical conversion of date iso strings in json to date objects results in 10%-20% perf penalty and is often unwanted. It would be better to provide a way to register transformation functions on $resource instances, so that users can opt-in to conversions like this one.
The text was updated successfully, but these errors were encountered: