Ionic view transition hooks?

Hello,

Is there a way to have hooks on ionic view transitions, precisely, to be notified just before the transitions starts and just after it finishes?

Here is my need: in order to improve responsiveness when switch from view of a side menu, I perform some “deferred bindings”: the binding heavy part of the view if enclosed in a ng-if div, and performed only after the view transition is done so the view change and transition occurs immediately after the click.

For now, it is done with a fixed timer (1s), but a view transition hook would be way more precise and would allow faster speed on faster phones :smile:

Thanks!

Something like this will be coming in the next beta

http://ionicframework.com/docs/nightly/api/directive/ionView/

Since in the next beta, scopes won’t be destroyed, we had to create some events to know when a scope is active.

Good news!
I look forward to the next beta then :wink: