akveo / akveo/ngx-admin

Custom interceptor is not called

未关闭
#1,875 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug needs info needs investigation
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。