chore(refresher): add warning for required ion-refresher-content

This commit is contained in:
Adam Bradley
2016-02-29 13:43:35 -06:00
parent d39f21f410
commit 20fd2c3b8b

View File

@@ -210,6 +210,9 @@ export class Refresher {
console.warn('<ion-refresher> property "' + attrName + '" should now be placed on the inner <ion-refresher-content> component instead of <ion-refresher>. Please review the Refresher docs for API updates.');
}
});
if (!ele.children.length) {
console.warn('<ion-refresher> should now have an inner <ion-refresher-content> component. Please review the Refresher docs for API updates.');
}
}
private _onStart(ev: TouchEvent): any {