0

In my Angular application I have a div with ui-view that will display a child state. During navigation to one of these states, I would like autoscroll='true' to occur, and to the other I'd like autoscroll='false' to occur. How can I implement this behavior?

1 Answer 1

1

you could expose $state from ui-router in the questionable scope and then do something along

autoscroll='$state.in("questionableState")'
Sign up to request clarification or add additional context in comments.

3 Comments

Does this work with the execution order of UI-router?
Thanks - I'm honestly shocked this works as smoothly as it does. Well done!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.