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

Ion-toggle onChange event

$
0
0

@dmlkl wrote:

Hi all,

I want to know is there any way to bind onChange event and click event at the same time to the ion-toggle.

Currently, I need to fire my API to get my valve latest status (either on or off), there are some delay in the API to update the status of the valve (for example, currently is off, I turned on, but the API returned the valve is off, thus the ion-toggle will switch to off again, then on again in the next second). I tried to do the trick to delay the timer to get the API status, but actually, this could be hard to predict, it based on the internet speed to update the status.

Is there any better way to handle this?

Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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