Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logOnly: environment.production // restrict extension to log-only mode (setting it to false enables all extension features)
}),
EffectsModule.forRoot([StarkErrorHandlingEffects, StarkRbacUnauthorizedNavigationEffects]), // needed to set up the providers required for effects
UIRouterModule.forRoot({
states: APP_STATES,
useHash: false, // to use Angular's PathLocationStrategy in order to support HTML5 Push State
otherwise: "otherwise",
config: routerConfigFn
}),
TranslateModule.forRoot(),
StarkHttpModule.forRoot(),
StarkLoggingModule.forRoot(),
StarkSessionModule.forRoot({
loginStateName: starkPreloadingStateName // get rid of the Login page in the Showcase :-)
}),
StarkErrorHandlingModule.forRoot(),
StarkSettingsModule.forRoot(),
StarkRoutingModule.forRoot(),
StarkRBACAuthorizationModule.forRoot(),
StarkUserModule.forRoot(),
StarkXSRFModule.forRoot({
waitBeforePinging: {
waitBeforePingingFn: getXsrfWaitBeforePinging,
deps: [STARK_SESSION_SERVICE]
}
}),
SharedModule,
WelcomeModule,
StarkAppFooterModule,
StarkAppDataModule,
StarkAppLogoModule,
StarkAppLogoutModule,otherwise: "otherwise",
config: routerConfigFn
}),
TranslateModule.forRoot(),
StarkHttpModule.forRoot(),
StarkLoggingModule.forRoot(),
StarkSessionModule.forRoot(),
StarkSettingsModule.forRoot(),
StarkRoutingModule.forRoot(),
StarkUserModule.forRoot(),
StarkAppFooterModule,
StarkAppLogoModule,
StarkAppLogoutModule,
StarkAppMenuModule,
StarkAppSidebarModule.forRoot(),
StarkErrorHandlingModule.forRoot(),
StarkLanguageSelectorModule,
StarkDatePickerModule,
StarkToastNotificationModule.forRoot({
delay: 5000,
position: "top right",
actionClasses: []
}),
StarkSessionUiModule.forRoot(),
HomeModule
],
/**
* Expose our Services and Providers into Angular's dependency injection.
*/
providers: [
environment.ENV_PROVIDERS,
{ provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader }, // needed for ui-router