Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

How to fire ionViewDidEnter in subcomponents of a page

$
0
0
<template>
  <ion-page>
    <ion-header>
      <ion-toolbar>
        <ion-title>Tab1</ion-title>
      </ion-toolbar>
    </ion-header>
    <ion-content>
      <my-comp-a></my-comp-a>
    </ion-content>
  </ion-page>
</template>
...
export default {
  name: 'Tab1',
 components: {myCompA ... },
  setup(){
     onIonViewDidEnter(()=> {
       // fires ok
     })
  },
}


export default {
  name: 'myCompA ',
  setup(){
     onIonViewDidEnter(()=> {
       //  i want to update some data here ,but it doesn't get fired,
      //  someone idea,thanks
     })
  },
}

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>