Skip to content

Commit e001f24

Browse files
authoredOct 11, 2021
fix(angular): setup config properly (#24054)
resolves #24051 #24052
1 parent 68a7e43 commit e001f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎angular/src/app-initialize.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NgZone } from '@angular/core';
2-
import { initialize } from '@ionic/core';
2+
import { setupConfig } from '@ionic/core';
33
import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
44

55
import { Config } from './providers/config';
@@ -11,7 +11,7 @@ export const appInitialize = (config: Config, doc: Document, zone: NgZone) => {
1111
const win: IonicWindow | undefined = doc.defaultView as any;
1212
if (win && typeof (window as any) !== 'undefined') {
1313

14-
initialize({
14+
setupConfig({
1515
...config,
1616
_zoneGate: (h: any) => zone.run(h)
1717
});

0 commit comments

Comments
 (0)
Please sign in to comment.