Skip to content

Instantly share code, notes, and snippets.

@lislon
Created February 18, 2015 14:55
Show Gist options
  • Select an option

  • Save lislon/721f68901edd9ee4aea9 to your computer and use it in GitHub Desktop.

Select an option

Save lislon/721f68901edd9ee4aea9 to your computer and use it in GitHub Desktop.
var controller = new Controller({
loanCalcRegion: app.getRegion('loanCalc'),
loanOrder: window.__DATA.order,
yaCounter: window.yaCounter23682952,
});
app.Router = new Marionette.AppRouter({
routes: {
'order': function() {
app.vent.trigger('order:show')
},
},
})
app.on('start', function () {
// Render calculator
this.renderCalc();
controller.renderCalc()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment