dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AuthModule cluster_AuthModule_declarations cluster_AuthModule_imports cluster_AuthModule_exports cluster_AuthModule_providers CapsLockDirective CapsLockDirective AuthModule AuthModule CapsLockDirective->AuthModule AuthenticationRequiredComponent AuthenticationRequiredComponent AuthenticationRequiredComponent->AuthModule FeatureDisabledComponent FeatureDisabledComponent FeatureDisabledComponent->AuthModule LogoutComponent LogoutComponent LogoutComponent->AuthModule RolesDirective RolesDirective RolesDirective->AuthModule RolesMissingComponent RolesMissingComponent RolesMissingComponent->AuthModule RolesDirective RolesDirective AuthModule->RolesDirective CapsLockDirective CapsLockDirective AuthModule->CapsLockDirective AuthRoutingModule AuthRoutingModule AuthRoutingModule->AuthModule SharedModule SharedModule SharedModule->AuthModule AuthGuard AuthGuard AuthGuard->AuthModule AuthService AuthService AuthService->AuthModule TokenInterceptor TokenInterceptor TokenInterceptor->AuthModule
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { LogoutComponent } from './logout.component';
import { AuthRoutingModule } from './auth-routing.module';
import { FeatureDisabledComponent } from './feature-disabled.component';
import { RolesDirective } from './directives/roles.directive';
import { RolesMissingComponent } from './roles-missing.component';
import { CapsLockDirective } from './directives/caps-lock.directive';
import { AuthService } from './auth.service';
import { AuthGuard } from './support/auth.guard';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { TokenInterceptor } from './support/token.interceptor';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { AuthenticationRequiredComponent } from './authentication-required.component';

@NgModule({
  imports: [
    AuthRoutingModule,
    SharedModule,
    BsDropdownModule.forRoot()
  ],
  declarations: [
    CapsLockDirective,
    AuthenticationRequiredComponent,
    FeatureDisabledComponent,
    LogoutComponent,
    RolesDirective,
    RolesMissingComponent
  ],
  providers: [
    AuthGuard,
    AuthService,
    {
      provide: HTTP_INTERCEPTORS,
      useClass: TokenInterceptor,
      multi: true
    }
  ],
  exports: [
    RolesDirective,
    CapsLockDirective
  ]
})

export class AuthModule {
}

results matching ""

    No results matching ""