Closed kokujin closed 10 years ago
How is the root page matched? I cant get this to work
var rootRoute = crossroads.addRoute(''); var rootRoute2 = crossroads.addRoute('/'); rootRoute.matched.add(function(){ console.log('root route'); }); var rootRoute2 = crossroads.addRoute('');
Can someone tell me what I'm doing wrong? Thanks
It seems that I need to "parse" the route first as in:
crossroads.parse(document.location.pathname);
How is the root page matched? I cant get this to work
Can someone tell me what I'm doing wrong? Thanks