Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TestDataGenerationComponent,
CertificateComponent,
AccountAccessManagementComponent
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
FormsModule,
ReactiveFormsModule,
IconModule,
InfoModule,
BrowserAnimationsModule,
FileUploadModule,
FilterPipeModule,
NgHttpLoaderModule.forRoot()
],
providers: [
AutoLogoutService,
AuthGuard,
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true
},
{
provide: ErrorHandler,
useClass: GlobalErrorsHandler
}
],
bootstrap: [AppComponent]
})
import { HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgHttpLoaderModule } from 'ng-http-loader';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app.routing.module';
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
HttpClientModule,
AppRoutingModule,
NgHttpLoaderModule.forRoot(),
],
bootstrap: [AppComponent]
})
export class AppModule {
}
UserProfileComponent,
PaginationContainerComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
HttpClientModule,
FormsModule,
ReactiveFormsModule,
IconModule,
InfoModule,
BrowserAnimationsModule,
AppRoutingModule,
FileUploadModule,
FilterPipeModule,
NgHttpLoaderModule.forRoot(),
NgbModalModule,
BrowserModule,
NgbPaginationModule
],
providers: [
AutoLogoutService,
AuthGuard,
{ provide: APP_INITIALIZER, useFactory: app_Init, deps: [SettingsHttpService], multi: true },
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true
},
{
provide: ErrorHandler,
useClass: GlobalErrorsHandler
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
imports: [
RouterTestingModule,
NgHttpLoaderModule.forRoot()
],
providers: [
ApiConfiguration,
{provide: URL_PARAMS_PROVIDER, useValue: {}},
{provide: CustomizeService, useValue: CustomizeServiceStub}
]
})
.compileComponents()
.then(() => {
customizeService = TestBed.get(CustomizeService);
});
}));
beforeEach(() => {
import {ShareDataService} from './common/services/share-data.service';
import {ObaErrorsHandler} from "./common/interceptors/ObaErrorsHandler";
import {NgHttpLoaderModule} from "ng-http-loader";
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
ReactiveFormsModule,
FormsModule,
HttpClientModule,
NgHttpLoaderModule.forRoot()
],
providers: [
AisService,
ShareDataService,
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true
},
{
provide: ErrorHandler,
useClass: ObaErrorsHandler
}
],
bootstrap: [AppComponent]
})