I recently had a problem with the Angular ui bootstrap where it was failing to load the templates it is using, from its own Angular $templateCache.

The error I was getting, was a HTTP 404 Not found:

After some testing, I found out that the HTTP request interceptor I had setup in Angular, was stopping the $templateCache from working properly.

After adding an exception to the interceptor (so that it would ignore "requests" going to the template cache) it all worked just fine.

Interceptor code: