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

Re : Empty "{can.route}" can.Control event?

$
0
0
Justin suggested that I do something like this:
  1. can.route("", {section:""});
  2. can.route(":section/");
  3. can.route.ready();

  4. "{can.route} section": function(route, event, newVal)
  5. {
  6.     console.log(newVal);
  7. }
This sets up default parameters like you'd suggested. The issue I'm having now is that routed href links are not getting recognized as routes and instead the browser directs to those URLs with a page refresh.

Viewing all articles
Browse latest Browse all 3491

Trending Articles