Just a correction in the previous sample, it is actually:
>
> console.log(profile);
instead of:
> console.log(promise);
Of course, this is not the reason of our problems with IE.
On Monday, April 4, 2016 at 6:09:34 PM UTC+2, Jorge L. wrote:
>
> I'm testing a very simple angular resource:
>
> .factory('ProfileService', ['$resource', function($resource) {
>> return $resource('/api/users/me');
>> }]);
>>
> ...
>>
> ProfileService.get().$promise.then(function(profile) {
>>
> console.log(promise);
>>
> });
>>
>
> Although it has worked perfectly in chrome and firefox, when testing with
> IE Explorer 11 or Edge, it fails. Debugging the code, the promise is
> resolved but none of its data is available.
>
> We are using $q.defer for other promises, and they work in all the
> browsers. We could refactor the code to use artificially $q.defer but it's
> a pity because it looks we were using the standard approach.
>
> Did you have any issue with $resource promises in Explorer browsers?
>
> Thanks,
> Jorge
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.