dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_SharedModule cluster_SharedModule_declarations cluster_SharedModule_exports cluster_SharedModule_providers DropDownComponent DropDownComponent SharedModule SharedModule DropDownComponent->SharedModule ToastComponent ToastComponent ToastComponent->SharedModule DropDownComponent DropDownComponent SharedModule->DropDownComponent ToastComponent ToastComponent SharedModule->ToastComponent ErrorInterceptor ErrorInterceptor ErrorInterceptor->SharedModule JwtInterceptor JwtInterceptor JwtInterceptor->SharedModule

File

src/app/shared/shared.module.ts

import { NgModule } from '@angular/core';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { CommonModule } from '@angular/common';
import { MatIconModule } from '@angular/material';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { ToastComponent } from './components/toast/toast.component';
import { DropDownComponent } from './components/drop-down/drop-down.component';
import { JwtInterceptor } from '@app/shared/helpers/jwt.interceptor';
import { ErrorInterceptor } from '@app/shared/helpers/error.interceptor';

@NgModule({
  declarations: [ToastComponent, DropDownComponent],
  exports: [ToastComponent, DropDownComponent],
  imports: [
    CommonModule,
    NgbModule,
    MatIconModule,
  ],
  providers: [
    { provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true },
    { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
  ],
})
export class SharedModule { }

result-matching ""

    No results matching ""