source: Farmatiko/ClientApp/src/main.ts@ 5d02859

Last change on this file since 5d02859 was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Add more services

  • Property mode set to 100644
File size: 530 bytes
Line 
1import { enableProdMode } from '@angular/core';
2import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
4import { AppModule } from './app/app.module';
5import { environment } from './environments/environment';
6
7export function getBaseUrl() {
8 return environment.baseApiUrl;
9}
10
11const providers = [
12 { provide: 'BASE_URL', useFactory: getBaseUrl, deps: [] }
13];
14
15if (environment.production) {
16 enableProdMode();
17}
18
19platformBrowserDynamic(providers).bootstrapModule(AppModule)
20 .catch(err => console.log(err));
Note: See TracBrowser for help on using the repository browser.