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;








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")










share|improve this question




























    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")










    share|improve this question
























      0












      0








      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")










      share|improve this question














      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")







      angular cordova ionic-framework ionic3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 3:31









      Abhijit ChakraAbhijit Chakra

      2,12923 silver badges51 bronze badges




      2,12923 silver badges51 bronze badges






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Try with this.



           let modal = this.modalCtrl.create('Anymodal');
          modal.onDidDismiss(() =>
          // Call back logic here
          );
          modal.present();





          share|improve this answer






























            1














            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






            share|improve this answer

























              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
              );



              );













              draft saved

              draft discarded


















              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









              1














              Try with this.



               let modal = this.modalCtrl.create('Anymodal');
              modal.onDidDismiss(() =>
              // Call back logic here
              );
              modal.present();





              share|improve this answer



























                1














                Try with this.



                 let modal = this.modalCtrl.create('Anymodal');
                modal.onDidDismiss(() =>
                // Call back logic here
                );
                modal.present();





                share|improve this answer

























                  1












                  1








                  1







                  Try with this.



                   let modal = this.modalCtrl.create('Anymodal');
                  modal.onDidDismiss(() =>
                  // Call back logic here
                  );
                  modal.present();





                  share|improve this answer













                  Try with this.



                   let modal = this.modalCtrl.create('Anymodal');
                  modal.onDidDismiss(() =>
                  // Call back logic here
                  );
                  modal.present();






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 26 at 4:16









                  keval nayakkeval nayak

                  1851 gold badge1 silver badge9 bronze badges




                  1851 gold badge1 silver badge9 bronze badges























                      1














                      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






                      share|improve this answer



























                        1














                        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






                        share|improve this answer

























                          1












                          1








                          1







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 26 at 8:02









                          Chintan KukadiyaChintan Kukadiya

                          6132 silver badges16 bronze badges




                          6132 silver badges16 bronze badges



























                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해