backbone.js - Marionette router not triggering controller method on route -
i'm trying upgrade application marionette 1.* > 2.4.2. biggest part of change shifting away marionette modules using browserify/watchify commonjs style modules. i've hit roadblock while trying router/controller , running. no error thrown, reason routes arent triggering controller methods. doc_router.js: var $ = require('jquery') , _ = require("underscore") , backbone = require("backbone") , marionette = require("backbone.marionette") , app = require("../../app.js") var router = marionette.approuter.extend({ approutes: { "docs": "listdocs" } }); // map controllers var api = { listdocs: function () { console.log("listdocs") // doesnt log console app.docapp.list.controller.listdocs(); } }; // update url when controller event // requires triggered, call // appropriate controller via api. app.on("docs:list", function () {...