Answer the question
In order to leave comments, you need to log in
Why use marionette's appRouter instead of the regular one (backbone)?
Version 3.0
The following piece of code can be gleaned from the official documentation:
var MyRouter = Marionette.AppRouter.extend({
// "someMethod" must exist at controller.someMethod
appRoutes: {
"some/route": "someMethod"
},
/* standard routes can be mixed with appRoutes/Controllers above */
routes : {
"some/otherRoute" : "someOtherMethod"
},
someOtherMethod : function(){
// do something here.
}
});
someMethod
outside the router, just somewhere on the controller. Is this the only difference? Or is there some other convenient use of appRoute instead of the usual route?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question