mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +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';
|
||||
|
||||
export function appInitialize(config: Config) {
|
||||
return () => {
|
||||
return (): any => {
|
||||
const win: IonicWindow = window as any;
|
||||
if (typeof win !== 'undefined') {
|
||||
const Ionic = win.Ionic = win.Ionic || {};
|
||||
@ -31,7 +31,7 @@ export function appInitialize(config: Config) {
|
||||
elm.removeEventListener(eventName, cb, opts);
|
||||
}
|
||||
};
|
||||
defineCustomElements(win, {
|
||||
return defineCustomElements(win, {
|
||||
exclude: ['ion-tabs', 'ion-tab']
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user