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

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -