javascript - Accessing model attributes from Backbone view Underscore template -


I have a backbone.js view that looks like this:

  var stream = Backbone.View.extend ({tagName: 'div', className: 'stream', events: {}, initialize: function () {this.listenTo (this.model, 'change', this.render);}, Presentation: Function () {this. $ El.html (this.template (this.model.attributes)); Back to;}, Template: Function (data) {console.log (data); if (data.mime_type .match / ^ audio \)) {Return _Template ('

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -