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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -