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