Last active
August 16, 2016 02:55
-
-
Save mitsuruog/6f7f0ca3f546b245bccdd3ebc14375d8 to your computer and use it in GitHub Desktop.
Angular2でHttpInterceptorが欲しいお
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Angular2 HttpInterceptor Needed | |
| ## Who am I | |
| ## HttpInterceptorとは | |
| - XHRに関連する横断的機能(cross-cutting)を分離したい! | |
| - Global Error handling. | |
| - Angular1ではHttpInterceptorを使うことで綺麗に分離できた | |
| - refs: [AngularJS: API: $http](https://docs.angularjs.org/api/ng/service/$http) | |
| ## Way of httpInterceptor in Angular 2 | |
| 結論 | |
| 簡単にできない!! | |
| - この長いスレ | |
| - [RFC: Http interceptors and transformers · Issue #2684 · angular/angular](https://github.com/angular/angular/issues/2684) | |
| ## Angular2で | |
| ## | |
| ```ts | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment