I have a great Angular2 application that is now porting to Angular4 . However, it still uses the Http service.
I understand that Angular4 has an HttpClient which is said to be better than Http . However, I am afraid to change to HttpClient , since it is used in many places and related unit tests.
I would like to know what is the best transition from Http to HttpClient ? What should I consider in terms of code and unit tests?
Another reason I would like to upgrade to HttpClient is to use an interceptor? To do this, you need to change to HttpClient ?
Please inform. Thank you very much in advance.
source share