mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
fix(ssr): fix angular global window and document references
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { CommonModule, DOCUMENT } from '@angular/common';
|
||||
import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';
|
||||
import { IonicConfig } from '@ionic/core';
|
||||
|
||||
@ -141,7 +141,8 @@ export class IonicModule {
|
||||
useFactory: appInitialize,
|
||||
multi: true,
|
||||
deps: [
|
||||
ConfigToken
|
||||
ConfigToken,
|
||||
DOCUMENT
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user