D
D
DarthJS2017-05-11 14:26:46
Angular
DarthJS, 2017-05-11 14:26:46

How to update $http request data that is cached?

The bottom line is this:
let's say there is a getData(), which returns Used when requesting. Fresh data is taken only when the page is reloaded. And I want to update only one field without an extra request. How to fetch cached request and update one variable? Preferably without using . {name:'', age:''}.
cache:true
$cacheFactory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2017-05-11
@healqq

Not very clear. Do you store data in a cache and want to change this cache data?
Maybe it's worth storing the data in some intermediate service, rather than calling $http every time then?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question