mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
Action Menu nice
This commit is contained in:
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user