Open mardrof opened 6 years ago
Met the same situation.
Assumption reason:
You module, that declares table component
(tags.module.ts
) doesn't have interceptor provider
Solution (possible not ideal, but works for me):
providers: [
UserTableComponent,
{
provide: HTTP_INTERCEPTORS,
useClass: TokenInterceptor,
multi: true
},
in your module (not only in root app.module/some other) declare interceptor provider. Then it works :)
I will check your solution next week :) Thank you for response :)
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
app.module.ts
I'm using latest version (1.3.4) of library. Could you help me to solve this problem?