Skip to content

Instantly share code, notes, and snippets.

@ppcano
Created May 31, 2012 15:16
Show Gist options
  • Select an option

  • Save ppcano/2844086 to your computer and use it in GitHub Desktop.

Select an option

Save ppcano/2844086 to your computer and use it in GitHub Desktop.
Is there any view in Ember to avoid something like the view below?
Yn.BoundView = Em.View.extend({
item: null,
render: function(buffer) {
buffer.push( this.get('item') );
},
_itemDidChange: Ember.observer(function() {
this.rerender();
}, 'item')
});
var App.ItemView = Em.View.extend({
item:null,
template: Em.Handlerbars.compile('{{item}}')
});
@ppcano

ppcano commented May 31, 2012

Copy link
Copy Markdown
Author

Any better approach than BoundView????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment