Ion-tabs and rerendering


#1

Is there a way to stop ionic from rerendering the ion-content when switching tabs?

I have only two tabs with scrollable and zoomable images in them. Everything works fine except when I zoom and scroll in one tab, switch out and switch back, all my zooming and scrolling is gone since ion-content rerenders.

If there is a way, do tell.

Thanks,

Arjun


#2

Try to store your data (zoom level, scroll position etc) in $rootScope


#3

Yeah that’s the only thing I could think of too.

It would just be much more effective to stop the re-rendering.

Thanks though, I’m attempting to implement it now.