refactor(overlay): actionsheet/popup

This commit is contained in:
Adam Bradley
2015-10-04 22:35:54 -05:00
parent dfe19a962d
commit 3324f3cc90
13 changed files with 264 additions and 262 deletions

View File

@@ -129,18 +129,4 @@ export class IonicApp {
return this.components[id];
}
/**
* Create and append the given component into the root
* element of the app.
*
* @param {TODO} componentType the component to create and insert
* @return {Promise} Promise that resolves with the ContainerRef created
*/
appendOverlay(componentType: Type) {
if (!this.overlayAnchor) {
throw ('<ion-overlays></ion-overlays> must be added to your root component\'s template');
}
return this.overlayAnchor.append(componentType);
}
}