mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(angular): wait for core defined in angular initializer (#16693)
This commit is contained in:
@ -8,7 +8,7 @@ import { IonicWindow } from './types/interfaces';
|
|||||||
import '@ionic/core/dist/ionic/svg';
|
import '@ionic/core/dist/ionic/svg';
|
||||||
|
|
||||||
export function appInitialize(config: Config) {
|
export function appInitialize(config: Config) {
|
||||||
return () => {
|
return (): any => {
|
||||||
const win: IonicWindow = window as any;
|
const win: IonicWindow = window as any;
|
||||||
if (typeof win !== 'undefined') {
|
if (typeof win !== 'undefined') {
|
||||||
const Ionic = win.Ionic = win.Ionic || {};
|
const Ionic = win.Ionic = win.Ionic || {};
|
||||||
@ -31,7 +31,7 @@ export function appInitialize(config: Config) {
|
|||||||
elm.removeEventListener(eventName, cb, opts);
|
elm.removeEventListener(eventName, cb, opts);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
defineCustomElements(win, {
|
return defineCustomElements(win, {
|
||||||
exclude: ['ion-tabs', 'ion-tab']
|
exclude: ['ion-tabs', 'ion-tab']
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user