Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
RestangularModule.forRoot([ConfigService], restangularProviderConfigurer),
TabsModule.forRoot(),
TooltipModule.forRoot(),
ModalModule.forRoot(),
BsDropdownModule.forRoot(),
CollapseModule.forRoot(),
AlertModule.forRoot(),
PopoverModule.forRoot(),
TypeaheadModule.forRoot(),
TagInputModule,
AppRoutingModule,
StoreModule,
SyndesisCommonModule.forRoot(),
DataMapperModule,
NotificationModule,
TourNgxBootstrapModule.forRoot()
],
providers: [
{
provide: APP_INITIALIZER,
useFactory: appInitializer,
deps: [ConfigService],
multi: true
},
{
provide: RESTANGULAR_MAPPER,
useFactory: mapperRestangularProvider,
deps: [Restangular, ConfigService]
},
ConfigService,
UserService,
CanDeactivateGuard
beforeEach(() => {
const configServiceStub = {
getSettings: (...params) => APP_NAME
};
TestBed.configureTestingModule({
imports: [
RestangularModule,
StoreModule,
SyndesisCommonModule.forRoot(),
ModalModule.forRoot(),
RouterTestingModule.withRoutes([]),
CollapseModule.forRoot(),
BsDropdownModule.forRoot(),
NotificationModule,
TourNgxBootstrapModule.forRoot()
],
providers: [
ConfigService,
UserService,
TestSupportService,
NavigationService,
MockBackend,
{ provide: RequestOptions, useClass: BaseRequestOptions },
{
provide: Http,
useFactory: (backend, options) => {
return new Http(backend, options);
},
deps: [MockBackend, RequestOptions]
},
{ provide: ConfigService, useValue: configServiceStub }
@NgModule({
declarations: [NgxBootstrapComponent, DocsComponent, OtherRouteComponent],
imports: [
CommonModule,
RouterModule.forChild([{
component: NgxBootstrapComponent,
path: '',
children: [{
component: DocsComponent,
path: '',
}, {
component: OtherRouteComponent,
path: 'other',
}]
}]),
TourNgxBootstrapModule.forRoot(),
],
})
export class NgxBootstrapModule { }