Skip to content

Instantly share code, notes, and snippets.

@mitsuruog
Last active August 16, 2016 02:55
Show Gist options
  • Select an option

  • Save mitsuruog/6f7f0ca3f546b245bccdd3ebc14375d8 to your computer and use it in GitHub Desktop.

Select an option

Save mitsuruog/6f7f0ca3f546b245bccdd3ebc14375d8 to your computer and use it in GitHub Desktop.
Angular2でHttpInterceptorが欲しいお
# 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