Do you mean this?
 response.success(function (data) {
            deferred.resolve(data);
        });
        response.error(function (data) {
            alert('Error');
        });

to this?
 response.then(function (data) {
            deferred.resolve(data);
        });
        response.catch(function (data) {
            alert('Error');
        });

But I resolve the promise in Controller:
baseService.prototype.execute("webservice", 
"method").then("successfunction");

On Saturday, September 12, 2015 at 4:12:14 AM UTC-5, Sander Elias wrote:
>
> Hi Mark,
>
> change .success in .then and .error in .catch. and done.
>
> Regards
> Sander
> ​
>

-- 
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.

Reply via email to