Angular Interceptor for a BaseHref Path in Services
See the original posting on DZone Python
In a deployment scenario like a Jakarta EE, Angular services have to add the
BaseHref path to each service call. Angular has the feature of HttpInterceptors that can be used to add the
BaseHref in one class. The
HttpInterceptors can be used to to modify the headers, url, and body of Angular service requests/responses.
The example project that is used is Angular2AndJavaEE. It shows how the current Angular Version and Jakarta EE can be integrated.