mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -39,6 +39,7 @@ export class IonicApp {
|
||||
*/
|
||||
constructor() {
|
||||
this.overlays = [];
|
||||
this._isTransitioning = false;
|
||||
|
||||
// Our component registry map
|
||||
this.components = {};
|
||||
@@ -74,6 +75,24 @@ export class IonicApp {
|
||||
document.title = val;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets if the app is currently transitioning or not. For example
|
||||
* this is set to `true` while views transition, a modal slides up, an action-menu
|
||||
* slides up, etc. After the transition completes it is set back to `false`.
|
||||
* @param {bool} isTransitioning
|
||||
*/
|
||||
setTransitioning(isTransitioning) {
|
||||
this._isTransitioning = !!isTransitioning;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boolean if the app is actively transitioning or not.
|
||||
* @return {bool}
|
||||
*/
|
||||
isTransitioning() {
|
||||
return this._isTransitioning;
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO
|
||||
* @param {TODO=} val TODO
|
||||
|
||||
Reference in New Issue
Block a user