Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
declarations: [
AppComponent,
NewOperation,
OperationsList,
Currencies,
CustomCurrencyPipe
],
imports: [ // import Angular's modules
NgbModule,
BrowserModule,
CommonModule,
FormsModule,
HttpModule,
EffectsModule.run(CurrencyEffects),
StoreModule.provideStore(reducer),
],
providers: [CurrencyService]
})
export class AppModule {
constructor() {}
}
import { RoomEffect } from './pages/room/effects';
import { MainCanActivate } from './services/common';
import { TipModalModule } from './components/tip-modal';
import { HMR } from '../config/hmr';
import { routing } from './app.router';
import { AppComponent } from './app.component';
import { StorageService, PreloadService, ApiService, SignatureService } from './services/common';
import '../assets/css/common.scss';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
routing,
StoreModule.provideStore({
appReducer,
loginReducer,
registerReducer,
mainReducer,
chatReducer,
contactReducer,
roomReducer
}),
EffectsModule.run(LoginEffect),
EffectsModule.run(RegisterEffect),
EffectsModule.run(MainEffect),
EffectsModule.run(ChatEffect),
EffectsModule.run(ContactEffect),
EffectsModule.run(RoomEffect),
TipModalModule
// 是否启用ngrx调试工具
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpModule,
JsonpModule,
StoreModule.provideStore(reducer),
StoreDevtoolsModule.instrumentOnlyWithExtension(),
],
providers: [IntelligenceService]
});
});
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [],
imports: [StoreModule.provideStore({mainReducer})]
})
.compileComponents();
}));
ComponentLabelPipe,
RepoLabelPipe,
AuditLogFieldLabelPipe,
AuditLogsTableComponent,
PaginationComponent,
DropdownListComponent,
HostNamePipe
],
imports: [
RouterTestingModule,
FormsModule,
ReactiveFormsModule,
MomentModule,
MomentTimezoneModule,
...TranslationModules,
StoreModule.provideStore({
auditLogs,
serviceLogs,
auditLogsFields,
auditLogsGraphData,
serviceLogsFields,
serviceLogsHistogramData,
serviceLogsTruncated,
appState,
appSettings,
tabs,
clusters,
components,
hosts,
auth: auth.reducer,
userSettings
}),
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
HttpModule,
JsonpModule,
StoreModule.provideStore(reducer),
StoreDevtoolsModule.instrumentOnlyWithExtension(),
],
providers: [AutocompleteService]
});
});
import { AddToggleModalComponent } from './add-toggle-modal/add-toggle-modal.component';
@NgModule({
declarations: [
AppComponent,
FeatureTogglesComponent,
ConfigPropertiesComponent,
FilterPipe,
AddToggleModalComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
ClarityModule.forChild(),
StoreModule.provideStore({featureToggles, properties, apps, app}),
StoreDevtoolsModule.instrumentOnlyWithExtension({
maxAge: 5
}),
ReactiveFormsModule,
BrowserAnimationsModule,
EffectsModule.run(AppsEffects),
EffectsModule.run(AppEffects)
],
providers: [FilterPipe],
bootstrap: [AppComponent],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
],
})
export class AppModule { }
},
{
path: 'emp-man',
loadChildren: '@oasisdigital/employee-management#EmployeeManagementModule'
}
];
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpModule,
RouterModule.forRoot(ROUTES, { useHash: true }),
StoreModule.provideStore(reducer),
StoreDevtoolsModule.instrumentOnlyWithExtension({ maxAge: 10 }),
DashboardModule,
FruitBasketModule
],
providers: [AppService],
bootstrap: [AppComponent]
})
export class AppModule { }
import { NativeScriptHttpModule } from 'nativescript-angular/http';
registerElement('Carousel', () => require('nativescript-carousel').Carousel);
registerElement('CarouselItem', () => require('nativescript-carousel').CarouselItem);
@NgModule({
bootstrap: [
AppComponent
],
imports: [
NativeScriptModule,
NativeScriptHttpModule,
AppRoutingModule,
AppStoreModule,
NavigationModule,
StoreModule.provideStore(AppReducer),
],
declarations: [
AppComponent,
],
providers: [
{ provide: NgModuleFactoryLoader, useClass: NSModuleFactoryLoader },
],
schemas: [
NO_ERRORS_SCHEMA
]
})
export class AppModule { }
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [DatePickerComponent],
imports: [
StoreModule.provideStore({
appSettings,
userSettings: userSettings.reducer
})
],
providers: [
AppSettingsService,
UserSettingsService
]
})
.compileComponents();
}));