Custom interceptor is not called
- 主要语言
- TypeScript
- 星标
- 25.7k
- 派生
- 7.9k
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Issue type
**I'm submitting a ...** (check one with "x")
* [x] bug report
* [ ] feature request
* [ ] question about the decisions made in the repository
### Issue description
**Current behavior:**
I have a custom interceptor of angular included in AppModule, when I update the ngx-admin, the interceptor is not working, it is not called in several routes or it is call more than once.
**Expected behavior:**
The interceptor should be called in every call.
**Steps to reproduce:**
Update ngx-admin to last release.
**Related code:**
```
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
{ provide: HTTP_INTERCEPTORS, useClass: AppInterceptor, multi: true, deps: [Router, AlertService] }
],
```
### Other information:
**npm, node, OS, Browser**
```
# node --version
v8.11.3
# npm --version
6.4.1
```
**Angular, Nebular**
```
"@angular/core": "6.0.0",
"@nebular/auth": "2.0.1"
```
贡献指南
评估
这个 Issue 还没有评估数据。