fix(angular): wait for core defined in angular initializer (#16693)

This commit is contained in:
Adam Bradley
2018-12-11 21:01:15 -06:00
committed by GitHub
parent a6a17235d0
commit 060794e9c8

View File

@ -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']
});
}