jmdobry / angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.
http://jmdobry.github.io/angular-cache
MIT License
1.39k stars 156 forks source link

Problem while using angulat-cache with Require.js #172

Closed edr999 closed 9 years ago

edr999 commented 9 years ago

Hi I added angular-cache (4.1.0) to be loaded by require.js the angular-cache module request angular from the root folder http://localhost/mysite/angular.js (although angular is already loaded from another location) and gets 404 for that reqest

thanks edr999

jmdobry commented 9 years ago

In order for me to help you, you're going to have to give me more information than "it didn't work".

edr999 commented 9 years ago

thanks. I created plnkr http://plnkr.co/edit/vQbWKKHPtk2RnolWLyE9?p=info i'm using angular ver 1.3.15 using previous versions all is OK (on the demo it is Angular-cache 3) but when i'm using the angular-cache 4.1 i'm getting an error that the angular cache is trying to call angular.js from other place and get 404 thanks so much for the help

jmdobry commented 9 years ago

Here's a forked version of your plunker that shows how to setup your requirejs paths and shim configuration correctly: http://plnkr.co/edit/GvvqJA?p=preview

edr999 commented 9 years ago

Thanks so much it is working! The missing part was the shim configuration on the require Issue closed