Skip to content

Instantly share code, notes, and snippets.

@emrahtoy
emrahtoy / app.js
Last active Aug 29, 2015
Two way binding for marionette with marionette.behavior like angularjs directives approach
View app.js
var focus = new Marionette.Application();
Marionette.Behaviors.behaviorsLookup = function() {
return focus.behaviors;
};
focus.router = new Marionette.AppRouter();
focus.addRegions({
mainRegion: '#mainRegion'
You can’t perform that action at this time.