updates
This commit is contained in:
@@ -5,6 +5,7 @@ import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|||||||
import { routes } from './app.routes';
|
import { routes } from './app.routes';
|
||||||
import { cacheInterceptor } from './interceptors/cache.interceptor';
|
import { cacheInterceptor } from './interceptors/cache.interceptor';
|
||||||
import { apiHeadersInterceptor } from './interceptors/api-headers.interceptor';
|
import { apiHeadersInterceptor } from './interceptors/api-headers.interceptor';
|
||||||
|
import { mockDataInterceptor } from './interceptors/mock-data.interceptor';
|
||||||
import { provideServiceWorker } from '@angular/service-worker';
|
import { provideServiceWorker } from '@angular/service-worker';
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
@@ -16,7 +17,7 @@ export const appConfig: ApplicationConfig = {
|
|||||||
withInMemoryScrolling({ scrollPositionRestoration: 'top' })
|
withInMemoryScrolling({ scrollPositionRestoration: 'top' })
|
||||||
),
|
),
|
||||||
provideHttpClient(
|
provideHttpClient(
|
||||||
withInterceptors([apiHeadersInterceptor, cacheInterceptor])
|
withInterceptors([mockDataInterceptor, apiHeadersInterceptor, cacheInterceptor])
|
||||||
),
|
),
|
||||||
provideServiceWorker('ngsw-worker.js', {
|
provideServiceWorker('ngsw-worker.js', {
|
||||||
enabled: !isDevMode(),
|
enabled: !isDevMode(),
|
||||||
|
|||||||
@@ -14,5 +14,6 @@ export const environment = {
|
|||||||
phones: {
|
phones: {
|
||||||
armenia: '+374 98 731231',
|
armenia: '+374 98 731231',
|
||||||
support: '+374 98 731231'
|
support: '+374 98 731231'
|
||||||
}
|
},
|
||||||
|
useMockData: false
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,5 +14,6 @@ export const environment = {
|
|||||||
phones: {
|
phones: {
|
||||||
armenia: '+374 98 731231',
|
armenia: '+374 98 731231',
|
||||||
support: '+374 98 731231'
|
support: '+374 98 731231'
|
||||||
}
|
},
|
||||||
|
useMockData: true
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,5 +14,6 @@ export const environment = {
|
|||||||
phones: {
|
phones: {
|
||||||
russia: '+7 (926) 459-31-57',
|
russia: '+7 (926) 459-31-57',
|
||||||
armenia: '+374 94 86 18 16'
|
armenia: '+374 94 86 18 16'
|
||||||
}
|
},
|
||||||
|
useMockData: false
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user