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

Why does parent route model refresh when visiting nested route?

$
0
0

@tsteuwer wrote:

I'm having an issue where the parent route refreshes every time I visit a nested route.

the router is setup as:

this.route('something', {
path: 'something/:id',
}, function() {
this.route('add-new-image');
});

So, say a user visits:

/something/1234

Then clicks "Add A New Image" which uses the link-to helper to go to "something.add-new-image".

The display for the parent route refreshes and then the new route's model loads. Even when they hit the back button, the parent model refreshes again.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles