refactor(app): add cordova-platform to ion-app, add back-button support, get api working

This commit is contained in:
Dan Bucholtz
2018-02-05 22:20:48 -06:00
parent 2f8a027e2f
commit 2bde55421d
29 changed files with 423 additions and 94 deletions

View File

@ -302,7 +302,7 @@ export function debounce(func: Function, wait = 0) {
export function getNavAsChildIfExists(element: HTMLElement): HTMLIonNavElement|null {
for (let i = 0; i < element.children.length; i++) {
if (element.children[i].tagName.toLowerCase() === 'ion-nav') {
return element.children[i] as HTMLIonNavElement;
return element.children[i] as any as HTMLIonNavElement;
}
}
return null;