Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Loading parent controllers when accessing a bookmarked url

$
0
0
Hi there,

I'm analyzing javascript mvc frameworks for a medium size web application, so far I really like all features presented by jmvc, but I have one question about the routing functionality

Assume you have an app with the following urls

app#!
   The root url, it loads the application template (#header, #content, #footer)

app#!users/dashboard/1
   - It injects the dashboard.ejs template in the app template (#content), it add two more boilerplates (#left_menu, #profile)

app#1users/profile/1
   - It injects the profile template in the dashboard template (#profile)

If I go step by step the templates are loaded without issues because the DOM structure is in place, but if I open a new tab and I go directly to app#!users/profile/1 the profile template wont show because the dashboard template was not loaded yet, neither the dashboard controller or the logic in it.

Does canjs or javascript mvc suggest a good way to this? I have read in other forums about a HistoryMasterController but for a medium size app with a lot of urls could end in many javascript code to manually load parent controllers

Thanks








Viewing all articles
Browse latest Browse all 3491

Trending Articles