gund / ng-http-interceptor

Http Interceptor library for Angular
MIT License
104 stars 16 forks source link

Property 'do' does not exist on type 'Observable<Response>'. #163

Closed raykin closed 7 years ago

raykin commented 7 years ago

I follow the example code on ionic2 projection. The request interceptor works but response interceptor failed. I looks an API change bug. Here is my libs env.

~/studio/aska (master ✘)✹✭ ᐅ npm list rxjs
Deltux@0.0.0 /Users/raykin/studio/aska
└── rxjs@5.4.0
~/studio/aska (master ✘)✹✭ ᐅ npm list @angular/core
Deltux@0.0.0 /Users/raykin/studio/aska
└── @angular/core@4.1.3
gund commented 7 years ago

If you are using RxJs operators you need to import them:

import 'rxjs/add/operator/do';
raykin commented 7 years ago

@gund sorry for the dumb question. it works. thanks. I've just upgrade from angularjs to angular, need more time to research on rxjs