File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import { AppComponent } from './app.component';
77import { AppModule } from './app.module' ;
88import { REQUEST } from '@nguniversal/express-engine/tokens' ;
99// import { ServiceWorkerModule } from '@angular/service-worker';
10- import { PrebootModule } from 'preboot' ;
1110
1211export 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 ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { MetaStaticLoader } from '@ngx-meta/core';
1313import { PageTitlePositioning } from '@ngx-meta/core' ;
1414import { TranslateLoader , TranslateModule } from '@ngx-translate/core' ;
1515import { TranslateHttpLoader } from '@ngx-translate/http-loader' ;
16+ import { PrebootModule } from 'preboot' ;
1617
1718export 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 ,
You can’t perform that action at this time.
0 commit comments