Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

How to Sync ionic tab data with API data when tab is clicked

$
0
0

@GiovanniArnaud wrote:

Hello,
I have an Ionic tab with 3 tabs A, B and C. In the tab B i use an API to display a list of names.

App Tab B :

  • Joe
  • Jean
  • Sam

API :

  • Joe
  • Jean
  • Sam

In the meantime, a new name has been added to the API which is now :

  • Joe
  • Jean
  • Sam
  • John

I want that when i am in the tab A and i click on tab B, my app refresh the tab B and do a new call to the API trhough the getNamesFromAPI() method in order to actualize the list of names without refreshing the whole app.

Do you know how i could do that ?

Thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



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