Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear the cache in angularjs

I am doing an angular project,but after every changes in java-script file I want to clear the cache.So I want to know is there any angular code for deleting or removing the cache file?

like image 345
ArunJaganathan Avatar asked May 02 '16 14:05

ArunJaganathan


People also ask

How do I empty npm cache?

Run: “npm cache clean –force” And if npm cache clean and npm cache verify . are both not working and you still can't clear the cache, you can force clear the cache by running: npm cache clean --force or npm cache clean -f . This will force delete the npm cache on your computer.

What is angular cache?

A cache object used to store and retrieve data, primarily used by $templateRequest and the script directive to cache templates and other data. angular.

What is npm cache clean -- force?

To clear a cache in npm, we need to run the npm cache clean command followed by the --force flag in our terminal. Here is an example: npm cache clean --force. clean: It deletes the all data from your cache folder. You can also verify the cache, by running the following command.


1 Answers

just do this npm cache clear --force it will work

like image 148
etah jet Avatar answered Sep 20 '22 11:09

etah jet