fix: 使用固定的 APP_ID,以减少预先渲染的结果差异
This commit is contained in:
parent
582b756ce9
commit
240e982090
|
@ -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 ]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue