Answer the question
In order to leave comments, you need to log in
How to set up routing in Backbone.Marionette modules?
I add modules to the Backbone.Marionette application:
start: function( options ) {
Marionette.Application.prototype.start.apply( this, [ options ] );
this.Router = new Router( { controller: new Controller() } );
this.module( 'Auth', { moduleClass: AuthModule } );
this.module( 'List', { moduleClass: ListModule } );
this.module( 'Cabinet', { moduleClass: CabinetModule } );
Backbone.history.start( { pushState: true } );
},
Answer the question
In order to leave comments, you need to log in
The question is removed.
Should have been called with trigger: true
app.Router.navigate( 'route', { trigger: true} );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question