I\'m trying to extent angular 2 http class to be able to handle global errors and set up headers for my secureHttp service. I found some solutions but it doesn\'t work with
From Angular 4.3, we don't need to extends http anymore. Instead, we can use HttpInterceptor and HttpClient to archive all these stuffs.
extends http
HttpInterceptor
HttpClient
It's similar and easier than using Http.
Http
I migrated to HttpClient in about 2 hours.
Detail is here