alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

Notification affecting CacheFactory #93

Closed omesanni closed 7 years ago

omesanni commented 8 years ago

I am making use of CacheFactory and angular-ui-notification in a project i am working on. Now anytime I inject the Notification service in my http interceptor I get this error below: Uncaught Error: [$cacheFactory:iid] CacheId '$http' is already taken

Please can you tell me how I can fix this error caused by the Notification service as I noticed that the $http request inside the $get function of the NotificationProvider makes use of $templateCache.

Thanks for your anticipated assistance

vicpon commented 7 years ago

Change the name of the cache used by the $http service. See here:

https://github.com/jmdobry/angular-cache#using-angular-cache-with-http