mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
fixed app.module
This commit is contained in:
@@ -7,7 +7,7 @@ import { ComponentsModule } from './modules/components.module';
|
||||
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
import { BasicAuthorizationInterceptor, BasicAuthorizationOptions } from './core/interceptors';
|
||||
import { SearchResultsComponent } from './components/search-results/search-results.component';
|
||||
import { CatServiceModule, CAT_SERVICE_ENDPOINT } from 'cat-service';
|
||||
import { CatServiceModule, CAT_SERVICE_ENDPOINT, CatSearchService } from 'cat-service';
|
||||
import { ProductCardComponent } from './components/product-card/product-card.component';
|
||||
import { ConfigService } from './core/services/config.service';
|
||||
import { ProductDetailsComponent } from './components/product-details/product-details.component';
|
||||
@@ -71,8 +71,8 @@ export function _feedServiceEndpointProviderFactory(conf: ConfigService) {
|
||||
NgxsModule.forRoot(states, { developmentMode: !environment.production }),
|
||||
NgxsReduxDevtoolsPluginModule.forRoot(),
|
||||
NgxsLoggerPluginModule,
|
||||
CatServiceModule.forRoot('https://catsearch.paragon-data.de'),
|
||||
FeedServiceModule.forRoot(''),
|
||||
CatServiceModule,
|
||||
FeedServiceModule,
|
||||
FormsModule,
|
||||
],
|
||||
providers: [
|
||||
@@ -80,7 +80,7 @@ export function _feedServiceEndpointProviderFactory(conf: ConfigService) {
|
||||
{ provide: HTTP_INTERCEPTORS, useFactory: _basicAuthorizationInterceptorFactory, deps: [ConfigService], multi: true },
|
||||
{ provide: CAT_SERVICE_ENDPOINT, useFactory: _catServiceEndpointProviderFactory, deps: [ConfigService] },
|
||||
{ provide: FEED_SERVICE_ENDPOINT, useFactory: _feedServiceEndpointProviderFactory, deps: [ConfigService] },
|
||||
// { provide: CatSearchService, useClass: CatSearchMockService } // Uncomment if u want to use the CatSearchMockService
|
||||
// { provide: CatSearchService, useClass: CatSearchMockService }, // Uncomment if u want to use the CatSearchMockService
|
||||
{ provide: FeedService, useClass: FeedMockService } // Uncomment if u want to use the FeedMockService
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
|
||||
Reference in New Issue
Block a user