Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1003 bytes
|
Line | |
---|
1 | /***************************************************************************************************
|
---|
2 | * Initialize the server environment - for example, adding DOM built-in types to the global scope.
|
---|
3 | *
|
---|
4 | * NOTE:
|
---|
5 | * This import must come before any imports (direct or transitive) that rely on DOM built-ins being
|
---|
6 | * available, such as `@angular/elements`.
|
---|
7 | */
|
---|
8 | import '@angular/platform-server/init';
|
---|
9 |
|
---|
10 | <% if (hasLocalizePackage) { %>/***************************************************************************************************
|
---|
11 | * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
|
---|
12 | */
|
---|
13 | import '@angular/localize/init';
|
---|
14 |
|
---|
15 | <% } %>import { enableProdMode } from '@angular/core';
|
---|
16 |
|
---|
17 | import { environment } from './environments/environment';
|
---|
18 |
|
---|
19 | if (environment.production) {
|
---|
20 | enableProdMode();
|
---|
21 | }
|
---|
22 |
|
---|
23 | export { <%= rootModuleClassName %> } from './app/<%= stripTsExtension(rootModuleFileName) %>';
|
---|
24 | export { renderModule, renderModuleFactory } from '@angular/platform-server';
|
---|
Note:
See
TracBrowser
for help on using the repository browser.