Which life cycle method called in ionic when a modal dialog got dismissedCapturing Crosswalk Cordova webview touch eventsAngular 2 ng-bootstrap close ModalAngular 2 events fires twiceDynamically Update Side Menu in Ionic 2Ionic 3 pause and resume events triggering multiple times in AndroidAngular - Calling method on service from component returns undefinedCapturing 'Next' button pressed even in ionic/cordovaIonic 3.9: iOS: API request with JWT/AuthHttp: getting Response with status: 0 for URL: nullIONIC 3, on destroy or onstop eventCannot dispatch event from javascript to Component (Ionic)
Why do players in the past play much longer tournaments than today's top players?
What was the definition of "set" that resulted in Russell's Paradox
Why would guns not work in the dungeon?
As the Dungeon Master, how do I handle a player that insists on a specific class when I already know that choice will cause issues?
Book where the stars go black due to aliens stopping human observation collapsing quantum possibilities
Was the Ford Model T black because of the speed black paint dries?
Is Arc Length always irrational between two rational points?
Maximum charterer insertion
If your plane is out-of-control, why does military training instruct releasing the joystick to neutralize controls?
How to say "to make my heart sing"
CentOS 7 -> find: missing Argument for "-exec"
Single word for "refusing to move to next activity unless present one is completed."
Can I call 112 to check a police officer's identity in the Czech Republic?
How can I effectively communicate to recruiters that a phone call is not possible?
What would be the ideal melee weapon made of "Phase Metal"?
Can fluent English speakers distinguish “steel”, “still” and “steal”?
What is the function of interplane strut of a Biplane?
Is anyone advocating the promotion of homosexuality in UK schools?
How to achieve this rough borders and stippled illustration look?
When did the Roman Empire fall according to contemporaries?
Is there a word for a message that is intended to be intercepted by an adversary?
Why isn't pressure filtration popular compared to vacuum filtration?
What's the maximum time an interrupt service routine can take to execute on atmega328p?
Is Trump personally blocking people on Twitter?
Which life cycle method called in ionic when a modal dialog got dismissed
Capturing Crosswalk Cordova webview touch eventsAngular 2 ng-bootstrap close ModalAngular 2 events fires twiceDynamically Update Side Menu in Ionic 2Ionic 3 pause and resume events triggering multiple times in AndroidAngular - Calling method on service from component returns undefinedCapturing 'Next' button pressed even in ionic/cordovaIonic 3.9: iOS: API request with JWT/AuthHttp: getting Response with status: 0 for URL: nullIONIC 3, on destroy or onstop eventCannot dispatch event from javascript to Component (Ionic)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a component A from component A i am calling a Modal dialog when i am dismissing the modal dialog i want to capture the event in component A . But it seems there is no event triggered in component A . So far i tried with logging inside ionic life cycle methods Any hint would be highly appreciated ..
Here i dismiss the modal dialog by this.navCtrl.pop()
ionViewDidEnter()
alert("ionViewDidEnter")
ionViewWillLeave()
alert("ionViewWillLeave")
ionViewWillEnter()
alert("ionViewWillEnter")
ionViewDidLeave()
alert("ionViewDidLeave")
ionViewWillUnload()
alert("ionViewWillUnload")
ionViewDidLoad()
alert("ionViewDidLoad")
add a comment |
I have a component A from component A i am calling a Modal dialog when i am dismissing the modal dialog i want to capture the event in component A . But it seems there is no event triggered in component A . So far i tried with logging inside ionic life cycle methods Any hint would be highly appreciated ..
Here i dismiss the modal dialog by this.navCtrl.pop()
ionViewDidEnter()
alert("ionViewDidEnter")
ionViewWillLeave()
alert("ionViewWillLeave")
ionViewWillEnter()
alert("ionViewWillEnter")
ionViewDidLeave()
alert("ionViewDidLeave")
ionViewWillUnload()
alert("ionViewWillUnload")
ionViewDidLoad()
alert("ionViewDidLoad")
add a comment |
I have a component A from component A i am calling a Modal dialog when i am dismissing the modal dialog i want to capture the event in component A . But it seems there is no event triggered in component A . So far i tried with logging inside ionic life cycle methods Any hint would be highly appreciated ..
Here i dismiss the modal dialog by this.navCtrl.pop()
ionViewDidEnter()
alert("ionViewDidEnter")
ionViewWillLeave()
alert("ionViewWillLeave")
ionViewWillEnter()
alert("ionViewWillEnter")
ionViewDidLeave()
alert("ionViewDidLeave")
ionViewWillUnload()
alert("ionViewWillUnload")
ionViewDidLoad()
alert("ionViewDidLoad")
I have a component A from component A i am calling a Modal dialog when i am dismissing the modal dialog i want to capture the event in component A . But it seems there is no event triggered in component A . So far i tried with logging inside ionic life cycle methods Any hint would be highly appreciated ..
Here i dismiss the modal dialog by this.navCtrl.pop()
ionViewDidEnter()
alert("ionViewDidEnter")
ionViewWillLeave()
alert("ionViewWillLeave")
ionViewWillEnter()
alert("ionViewWillEnter")
ionViewDidLeave()
alert("ionViewDidLeave")
ionViewWillUnload()
alert("ionViewWillUnload")
ionViewDidLoad()
alert("ionViewDidLoad")
asked Mar 26 at 3:31
Abhijit ChakraAbhijit Chakra
2,12923 silver badges51 bronze badges
2,12923 silver badges51 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Try with this.
let modal = this.modalCtrl.create('Anymodal');
modal.onDidDismiss(() =>
// Call back logic here
);
modal.present();
add a comment |
You have to take modal reference after creating the modal dialog like
let modalDialog = this.modalCtrl.create(ComponentA);
Then you have to handle onDidDismiss event of modal reference like
modalDialog.onDidDismiss = ((data) => //your action after dismiss })
And in modal dialog components, you have to call dismiss like
this.viewCtrl.dismiss(<data you want to pass>);
For more reference you can look here https://forum.ionicframework.com/t/ionic-3-get-data-from-modal/105959
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349462%2fwhich-life-cycle-method-called-in-ionic-when-a-modal-dialog-got-dismissed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try with this.
let modal = this.modalCtrl.create('Anymodal');
modal.onDidDismiss(() =>
// Call back logic here
);
modal.present();
add a comment |
Try with this.
let modal = this.modalCtrl.create('Anymodal');
modal.onDidDismiss(() =>
// Call back logic here
);
modal.present();
add a comment |
Try with this.
let modal = this.modalCtrl.create('Anymodal');
modal.onDidDismiss(() =>
// Call back logic here
);
modal.present();
Try with this.
let modal = this.modalCtrl.create('Anymodal');
modal.onDidDismiss(() =>
// Call back logic here
);
modal.present();
answered Mar 26 at 4:16
keval nayakkeval nayak
1851 gold badge1 silver badge9 bronze badges
1851 gold badge1 silver badge9 bronze badges
add a comment |
add a comment |
You have to take modal reference after creating the modal dialog like
let modalDialog = this.modalCtrl.create(ComponentA);
Then you have to handle onDidDismiss event of modal reference like
modalDialog.onDidDismiss = ((data) => //your action after dismiss })
And in modal dialog components, you have to call dismiss like
this.viewCtrl.dismiss(<data you want to pass>);
For more reference you can look here https://forum.ionicframework.com/t/ionic-3-get-data-from-modal/105959
add a comment |
You have to take modal reference after creating the modal dialog like
let modalDialog = this.modalCtrl.create(ComponentA);
Then you have to handle onDidDismiss event of modal reference like
modalDialog.onDidDismiss = ((data) => //your action after dismiss })
And in modal dialog components, you have to call dismiss like
this.viewCtrl.dismiss(<data you want to pass>);
For more reference you can look here https://forum.ionicframework.com/t/ionic-3-get-data-from-modal/105959
add a comment |
You have to take modal reference after creating the modal dialog like
let modalDialog = this.modalCtrl.create(ComponentA);
Then you have to handle onDidDismiss event of modal reference like
modalDialog.onDidDismiss = ((data) => //your action after dismiss })
And in modal dialog components, you have to call dismiss like
this.viewCtrl.dismiss(<data you want to pass>);
For more reference you can look here https://forum.ionicframework.com/t/ionic-3-get-data-from-modal/105959
You have to take modal reference after creating the modal dialog like
let modalDialog = this.modalCtrl.create(ComponentA);
Then you have to handle onDidDismiss event of modal reference like
modalDialog.onDidDismiss = ((data) => //your action after dismiss })
And in modal dialog components, you have to call dismiss like
this.viewCtrl.dismiss(<data you want to pass>);
For more reference you can look here https://forum.ionicframework.com/t/ionic-3-get-data-from-modal/105959
answered Mar 26 at 8:02
Chintan KukadiyaChintan Kukadiya
6132 silver badges16 bronze badges
6132 silver badges16 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55349462%2fwhich-life-cycle-method-called-in-ionic-when-a-modal-dialog-got-dismissed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown