In nested routing when i link from child route to parent route the parent route model is not loading

Hi, I’m newbie to ember when I call the parent route using <LinkTo> The model of that route is not loading but when I call the neighbor route of that child route the model is loading, What should i do to load the parent routs model

Hi Sriakran, could you share more details about the route hierarchy and what you want to happen? It’s a little difficult to diagnose without a bit more context.

One thing to note though, is that a parent route model is only going to load when it is first visited, it doesn’t reload anytime you change child routes. For example, if you visit:

/parent/child1   // parent model hook will load, child1 model hook will load
/parent/child2.  // parent model hook will not reload, child2 model hook will load
/parent          // parent model hook will not reload
/other-route     // outside of parent route, other-route model will load
/parent/child2   // parent model hook will load, child2 model hook will load
1 Like

@dknutsen thanks for the time, by the way I found the solution here.