Intercepting HTTP request within ServerSourceData
- Ngôn ngữ chính
- TypeScript
- Star
- 1.6k
- Fork
- 867
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi everyone,
I have some problem with Smart Table module. I need to intercept HTTP request to add some headers. My interceptor works perfectly with services until I add Ng2SmartTableModule into component module imports. Below you can see part of the code
#### tags.module.ts
```@NgModule({
imports: [
CommonModule,
Ng2SmartTableModule /* if I remove this line, interceptor works */
],
declarations: [TagsComponent, TagsListComponent],
providers: [
TagsService
]
})
export class TagsModule { }
```
#### app.module.ts
```@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
HttpClientModule,
BrowserAnimationsModule,
AppRoutingModule,
NgbModule.forRoot(),
ThemeModule.forRoot(),
CoreModule.forRoot(),
],
bootstrap: [AppComponent],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
{ provide: HTTP_INTERCEPTORS, useClass: BaseHttpInterceptor, multi: true},
],
})
export class AppModule {}
```
I'm using latest version (1.3.4) of library. Could you help me to solve this problem?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.