rest - AngularJS / Restful Smart Caching -



rest - AngularJS / Restful Smart Caching -

i'm looking solution "smart" caching in restful spa (i'm using angularjs). example, if app wants list of widgets (e.g., /widgets), later application wants specific widget (e.g., /widgets/<widgetid>), want app find on response first request rather making sec request resource.

this save request when user lands on listing view, navigates single item view. however, if user lands on single item view, app know still needed fetch /widgets/<widgetid> /widgets never called.

i looked through $resource , $http, didn't see related sort of behavior. looks might able utilize hooks in restangular, it's not that's supported out of box.

thanks!

angularjs rest caching single-page-application restangular

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -