The answer by @pavelgj is not entirely correct way to use HttpInterceptor
s. It can introduce hard to debug timing errors, when certain Http calls would have been already initiated by bootstrapped angular-dart app, hence the interceptor would miss those calls.
The right way to use interceptor is to make sure that you inject it before the first Http call somewhere within your angular app. The new syntax of bootstrapping is this:
applicationFactory()
.addModule(new YourAngularApp())
.run();
So within YourAngularApp, wherever you are injecting Http
for the first time, you can inject the HttpInterceptor
(only once) and add your custom interceptor.