javascript - global error handling for ngResource -


i searching way handle network related errors ngresource based services in 1 place.

from answer know can define custom interceptor actions in single resource. possible modify default actions created angularjs , pass custom interceptor there?

you can set interceptors on $http provider, documented here (in section "interceptors").


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -