Disabling initial animation on ion-toggle

Hi guys!

Simple question here.

Is it possible to disable the initial animation that happens if the ngModel is true on an ion-toggle?

I find it very annoying as the animation should only happen when it changes, not on render.

Hmm, are you asking to disable on change or when the view is rendered?

See this example.

Asking when the view is rendered but I realised why this was happening. It’s because the data comes from a service. I’ll need to use it as a dependency!

Thanks Mike!

1 Like