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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -