app.stateClear() for setRoot()

This commit is contained in:
Adam Bradley
2015-07-17 10:37:22 -05:00
parent 0ba6d132a0
commit fe5ce7b8b8
4 changed files with 16 additions and 0 deletions

View File

@@ -63,6 +63,10 @@ export class IonicApp {
}
}
stateClear() {
this.router.stateClear();
}
/**
* Register a known component with a key, for easy lookups later.
*/

View File

@@ -140,6 +140,8 @@ export class ViewController extends Ion {
return Promise.resolve();
}
this.app.stateClear();
// if animate has not been set then default to false
opts.animate = opts.animate || false;