Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$stateChangeStart and preventDefault #38

Closed
Bretto opened this issue Feb 28, 2013 · 3 comments
Closed

$stateChangeStart and preventDefault #38

Bretto opened this issue Feb 28, 2013 · 3 comments

Comments

@Bretto
Copy link

Bretto commented Feb 28, 2013

First and foremost, thank you guys for your hard work I am loving it, it's awesome !
Is there currently a way to pause the state change to enable a "transition-out" of the current view for x millisecond ( the time the "transition-out" takes ) and resume the state change ones it's done ? I have tried $stateChangeStart event.preventDefault() but it didn't stop the transition the view and the scope was destroyed.

@nprbst
Copy link

nprbst commented Feb 28, 2013

+1 for hooking pre and post transition events. I'm fairly new to Angular, but it seems that a promise chain where pre and post transition interceptors can be injected (much like the http interceptor) would work very well.

@ksperling
Copy link
Contributor

I'd say this is a duplicate of #22.

The animation wouldn't really pause the transition at the point $stateChangeStart is fired though, as you'd definitely want all the background work to prepare the new state to continue rather than waiting for the animation to complete before even starting that work.

@Bretto
Copy link
Author

Bretto commented Feb 28, 2013

Yes its the same request as #22...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants