Answer the question
In order to leave comments, you need to log in
How to partially disable AngularJS template caching?
Good afternoon,
How can I prevent caching of AngularJS templates loaded from a specific link?
For example, I don't need a cache for the following links:
http://site.ru/cms/form/element/1
http://site.ru/cms/form/element/2
http://site.ru/cms/form/element/.....
http://site.ru/cms/form/element/100
Answer the question
In order to leave comments, you need to log in
Either clear $templateCache.remove(url), or add random parameters to the address. The prohibition of caching means that the server generates part of the client view, and the developers plan to introduce such interaction only in the second version, so I think this is the only way to disable the cache for now.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question