feat(viewcontroller): add onWillDismiss callback

Fixed #6702
This commit is contained in:
Manu Mtz.-Almeida
2016-06-30 15:06:19 +02:00
committed by Adam Bradley
parent 1c882b31a5
commit ec99bfd019
13 changed files with 62 additions and 38 deletions

View File

@ -85,7 +85,7 @@ export class Loading extends ViewController {
* will show even during page changes, but this can be disabled by setting
* `dismissOnPageChange` to `true`. To dismiss the loading indicator after
* creation, call the `dismiss()` method on the Loading instance. The
* `onDismiss` function can be called to perform an action after the loading
* `onDidDismiss` function can be called to perform an action after the loading
* indicator is dismissed.
*
* >Note that after the component is dismissed, it will not be usable anymore
@ -126,7 +126,7 @@ export class Loading extends ViewController {
* duration: 5000
* });
*
* loading.onDismiss(() => {
* loading.onDidDismiss(() => {
* console.log('Dismissed loading');
* });
*

View File

@ -15,7 +15,7 @@ class E2EPage {
cssClass: 'my-custom-loader'
});
loading.onDismiss(() => {
loading.onDidDismiss(() => {
console.log('Dismissed loading');
});