fix: 准备换基于 Prerender 库的 prerender 方式

This commit is contained in:
Zhicheng WANG 2019-01-05 08:39:55 +08:00
parent 65c7a3ed99
commit 171d949d10
2 changed files with 5 additions and 3 deletions

View File

@ -132,7 +132,7 @@ export const svgIconProviders = [
@NgModule({ @NgModule({
imports: [ imports: [
BrowserModule, BrowserModule.withServerTransition({appId: 'ng-docs'}),
BrowserAnimationsModule, BrowserAnimationsModule,
CustomElementsModule, CustomElementsModule,
HttpClientModule, HttpClientModule,

View File

@ -8,5 +8,7 @@ if (environment.production) {
enableProdMode(); enableProdMode();
} }
platformBrowserDynamic().bootstrapModule(AppModule); document.addEventListener('DOMContentLoaded', () => {
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
});