Newer
Older
import {enableProdMode, StaticProvider} from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic(<StaticProvider[]>[

Martin Mechtel
committed
{
provide: 'SERVER_URL',
useValue: environment.testcenterUrl
},
{
provide: 'APP_PUBLISHER',
useValue: environment.appPublisher
},
{
provide: 'APP_NAME',
useValue: environment.appName
},
{
provide: 'APP_VERSION',
useValue: environment.appVersion

mechtelm
committed
},
{
provide: 'API_VERSION_EXPECTED',
useValue: environment.apiVersionExpected

Martin Mechtel
committed
}
]).bootstrapModule(AppModule)