Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Is there a good way to sync a service with the current route

$
0
0

@Hummingbird wrote:

I am having an application which makes use of an independent navigation bar on it's side. So, the navigation bar allows the user to navigate a set of nested routes independently from the current route. However, as the current route changes I need to tell the sidebar what the current route is as it is possible to navigate from the route's template as well. Therefore I am using a service which I call from the route's setupController() method. This works quite well unless the user navigating back within a nested route. For instance we are at (book: 1, page: 2) and the user navigates to (book: 1), this is an issue, as the setupController hook is not called. Same goes for the browsers back button. Is there a good way to make this work reliably?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles