Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { ConfirmComponent } from './confirm/confirm.component';
import { PromptComponent } from './prompt/prompt.component';
import { ParentDialogModalComponent } from './parent-dialog/parent-dialog.component';
import { CustomErrorHandler } from './custom-error/custom-error-handler';
import { OptionService } from './alert-select/options.service';
import { AlertSelectComponent } from './alert-select/alert-select.component';
import { DefaultSimpleModalOptionConfig, defaultSimpleModalOptions } from 'ngx-simple-modal/simple-modal/simple-modal-options';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
SelectModule,
SimpleModalModule.forRoot({container: 'modal-container'})
],
declarations: [
AppComponent,
AlertComponent,
AlertSelectComponent,
ConfirmComponent,
PromptComponent,
ParentDialogModalComponent
],
providers: [{
provide: ErrorHandler,
useClass: CustomErrorHandler,
},
// {
// provide: DefaultSimpleModalOptionConfig,
// useValue: {...defaultSimpleModalOptions, ...{ closeOnEscape: true, closeOnClickOutside: true }}
import { ConfirmComponent } from './confirm/confirm.component';
import { PromptComponent } from './prompt/prompt.component';
import { ParentDialogModalComponent } from './parent-dialog/parent-dialog.component';
import { CustomErrorHandler } from './custom-error/custom-error-handler'
import { OptionService } from './alert-select/options.service';
import { AlertSelectComponent } from './alert-select/alert-select.component';
import { DefaultSimpleModalOptionConfig, defaultSimpleModalOptions } from 'ngx-simple-modal/simple-modal/simple-modal-options';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
SelectModule,
SimpleModalModule.forRoot({container: 'modal-container'})
],
declarations: [
AppComponent,
AlertComponent,
AlertSelectComponent,
ConfirmComponent,
PromptComponent,
ParentDialogModalComponent
],
providers: [{
provide: ErrorHandler,
useClass: CustomErrorHandler,
},
// {
// provide: DefaultSimpleModalOptionConfig,
// useValue: {...defaultSimpleModalOptions, ...{ closeOnEscape: true, closeOnClickOutside: true }}
import { OptionService } from './alert-select/options.service';
import { AlertComponent } from './alert/alert.component';
import { AppComponent } from './app.component';
import { ConfirmComponent } from './confirm/confirm.component';
import { CustomErrorHandler } from './custom-error/custom-error-handler';
import { ParentDialogModalComponent } from './parent-dialog/parent-dialog.component';
import { PromptComponent } from './prompt/prompt.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
SelectModule,
A11yModule,
SimpleModalModule.forRoot(
{ container: 'modal-container' },
{
...defaultSimpleModalOptions,
...{
closeOnEscape: true,
closeOnClickOutside: true,
animationDuration: 0,
autoFocus: true,
},
}
),
],
declarations: [
AppComponent,
AlertComponent,
AlertSelectComponent,