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

Combine routes without clearing other outlets?

$
0
0

@eric wrote:

Hi guys,

I have a question regarding combined routes and multiple outlets displaying html.

The page layout is like this: outlet-left | main menu | outlet-right

Main menu contains buttons that route to different pages in outlet-right, but it also contains a button that displays a list of users in outlet-left which should be accessible at any given moment.

Showing content in the outlet-right works, and showing the list of users in the outlet-left also works. When rendering to either outlet, the content in the other outlet is cleared because I'm routing to that specific controller.

What I need is a way to have my content in the outlet-left displayed/hidden whenever I want, without any impact on the outlet-right.

I've tried adding extra routes (someItem/users), that renders content to both left and right outlets, but since the users in the left outlet should be accessible everywhere, this solution would mean that I have to override all routes with custom renderers. My question is whether this is the way to go, or is there a cleaner solution?

I'm using Ember 2.3.0-beta.1

Thanks! Eric

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles