I tried this on a sub-route/component, but it didn’t work. I also don’t see it documented anywhere.
I’m having a problem where navigation between routes doesn’t reset the scrollbar and can end up in the middle of the new view if you’re previous view was scrolled at all. Not desirable.
Is there anyway to set a global route config to reset the scrollbar/view to top upon navigation?
In relation to the scrollbar reset upon navigation, there’s a simple way of doing it if you are using jQuery using the router pipeline which is documented in http://aurelia.io/docs/routing/configuration#pipelines.
Note that the jQuery requirement doesn’t have to do with aurelia or the router; it is just my implementation.