fix: 准备换基于 Prerender 库的 prerender 方式
This commit is contained in:
parent
65c7a3ed99
commit
171d949d10
|
@ -132,7 +132,7 @@ export const svgIconProviders = [
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule.withServerTransition({appId: 'ng-docs'}),
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
CustomElementsModule,
|
CustomElementsModule,
|
||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
|
|
|
@ -8,5 +8,7 @@ if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||||
|
.catch(err => console.error(err));
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue