Last change
on this file since 68454c6 was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Add more services
|
-
Property mode
set to
100644
|
File size:
530 bytes
|
Line | |
---|
1 | import { enableProdMode } from '@angular/core';
|
---|
2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
---|
3 |
|
---|
4 | import { AppModule } from './app/app.module';
|
---|
5 | import { environment } from './environments/environment';
|
---|
6 |
|
---|
7 | export function getBaseUrl() {
|
---|
8 | return environment.baseApiUrl;
|
---|
9 | }
|
---|
10 |
|
---|
11 | const providers = [
|
---|
12 | { provide: 'BASE_URL', useFactory: getBaseUrl, deps: [] }
|
---|
13 | ];
|
---|
14 |
|
---|
15 | if (environment.production) {
|
---|
16 | enableProdMode();
|
---|
17 | }
|
---|
18 |
|
---|
19 | platformBrowserDynamic(providers).bootstrapModule(AppModule)
|
---|
20 | .catch(err => console.log(err));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.