Disabling initial animation on ion-toggle


#1

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.


#2

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

See this example.


#3

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!