Last change
on this file since 46c298d was 30a465f, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
553 bytes
|
Rev | Line | |
---|
[30a465f] | 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 document.getElementsByTagName('base')[0].href;
|
---|
| 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.