Skip to content

Commit 8d60cfe

Browse files
committed
up preboot import
1 parent 5789512 commit 8d60cfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/app.browser.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { AppComponent } from './app.component';
77
import { AppModule } from './app.module';
88
import { REQUEST } from '@nguniversal/express-engine/tokens';
99
// import { ServiceWorkerModule } from '@angular/service-worker';
10-
import { PrebootModule } from 'preboot';
1110

1211
export function getRequest(): any {
1312
// the Request object only lives on the server
@@ -22,7 +21,6 @@ export function getRequest(): any {
2221
BrowserModule.withServerTransition({
2322
appId: 'my-app'
2423
}),
25-
PrebootModule.withConfig({ appRoot: 'app-root' }),
2624
BrowserTransferStateModule,
2725
// ServiceWorkerModule.register('/ngsw-worker.js'),
2826
AppModule,

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { MetaStaticLoader } from '@ngx-meta/core';
1313
import { PageTitlePositioning } from '@ngx-meta/core';
1414
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
1515
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
16+
import { PrebootModule } from 'preboot';
1617

1718
export function metaFactory(): MetaLoader {
1819
const setting: MetaSettings = {
@@ -43,6 +44,7 @@ export function httpLoaderFactory(http: HttpClient) {
4344
],
4445
imports: [
4546
BrowserModule.withServerTransition({ appId: 'my-app' }),
47+
PrebootModule.withConfig({ appRoot: 'app-root' }),
4648
HttpClientModule,
4749
RouterModule,
4850
AppRoutes,

0 commit comments

Comments
 (0)