Hi to everyone,
I do have a service (let's say serviceOne) that simply returns a resource
call to a web API application running on my local. Then another service
(let's say serviceTwo) that needs to consume the data returned by calling
serviceOne. These 2 services are implemented somewhat like this: Note that
I am using angular-1.3
*serviceOne:*
....
*return $resource(url, {},*
* get: {*
* method: 'JSONP'*
* });*
// note that the url above is an http url to a separate web api app running
locally, using jsonp to avoid cross domain
....
*serviceTwo: *
* serviceOne.get().$promise.then(function(data){*
* scope.result = data;*
* });*
...............
The http get function is called and I can see I am getting the data when
the response comes back, the problem is, the call back function in
serviceTwo above is never called, tried different solutions but it is not
working. ANy help would be appreciated.
Thank you.
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.