feat(loading): add internal stack for the loading service

this allows the user to push multiple loading indicators on top of each
other without interfering with the page stack, as well as navigation
between pages behind the loading indicator.

references #5426
This commit is contained in:
Brandy Carney
2016-04-04 23:38:58 -04:00
parent f096cf656f
commit d3fa29fe95
6 changed files with 74 additions and 9 deletions

View File

@ -99,10 +99,12 @@ export class Loading extends ViewController {
constructor(opts: LoadingOptions = {}) {
opts.showBackdrop = isPresent(opts.showBackdrop) ? !!opts.showBackdrop : true;
opts.dismissOnPageChange = isPresent(opts.dismissOnPageChange) ? !!opts.dismissOnPageChange : false;
super(LoadingCmp, opts);
this.viewType = 'loading';
this.isOverlay = true;
this.usePortal = true;
// by default, loading indicators should not fire lifecycle events of other views
// for example, when an loading indicators enters, the current active view should