Last active
December 10, 2015 15:59
-
-
Save kristianhellquist/4458317 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyView = Backbone.View.extend | |
initialize: -> | |
@model.on('change', @render, @) | |
render: -> | |
@$el.html("whatever...") | |
@ | |
# Somewhere in your backbone-app ... | |
view = new MyView(model: aModel) | |
$('#content').append(view.render().el) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment