Skip to content

Instantly share code, notes, and snippets.

@dspangen
Last active December 20, 2015 22:48
Show Gist options
  • Save dspangen/6207587 to your computer and use it in GitHub Desktop.
Save dspangen/6207587 to your computer and use it in GitHub Desktop.
var BindingView = Backbone.Epoxy.View.extend({
bindings: {
"a": "text:linkText,attr:{href:linkUrl,title:linkText}"
}
});
var model = new Backbone.Model({
linkText:"use Epoxy for data binding in Backbone",
linkUrl:"http://epoxyjs.org/"
});
var inst = new BindingView({model: model});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment