fix: 使用固定的 APP_ID,以减少预先渲染的结果差异

This commit is contained in:
Zhicheng WANG 2021-02-09 17:25:40 +08:00
parent 582b756ce9
commit 240e982090
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { APP_ID, ErrorHandler, NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ServiceWorkerModule } from '@angular/service-worker';
@ -175,6 +175,7 @@ export const svgIconProviders = [
TocService,
{ provide: CurrentDateToken, useFactory: currentDateProvider },
{ provide: WindowToken, useFactory: windowProvider },
{ provide: APP_ID, useFactory: () => "ng-docs" },
],
bootstrap: [ AppComponent ]
})