Action Menu nice

This commit is contained in:
Max Lynch
2015-05-30 11:46:01 -05:00
parent 4e2b77092b
commit 6ebb29d445
4 changed files with 165 additions and 89 deletions

View File

@ -22,6 +22,13 @@ class IonicAppRoot {
return this.rootElementRef;
}
/**
* Create and append the given component into the root
* element of the app.
*
* @param Component the ComponentClass to create and insert
* @return Promise that resolves with the ContainerRef created
*/
appendToRoot(Component: Type) {
var appRef = Ionic.getAppRef();
var injector = appRef.injector;
@ -39,7 +46,7 @@ class IonicAppRoot {
console.log('Injected and created', containerRef);
resolve(containerRef.instance, containerRef.location);
resolve(containerRef);//containerRef.instance, containerRef.location);
});
});