I\'m having trouble writing an angular http interceptor in plain TypeScript. The code I\'m trying to convert is the following:
.config([\'$httpProvider\', fu
You need to do: public response = (response) => {}
public responseError = (rejection) => { }
Because in other way your 'this' will be undefined. To understand why you need this : https://www.youtube.com/watch?v=tvocUcbCupA&hd=1