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
Post a Comment