Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created February 28, 2012 18:31
Show Gist options
  • Save hvgotcodes/1934172 to your computer and use it in GitHub Desktop.
Save hvgotcodes/1934172 to your computer and use it in GitHub Desktop.
App.MyView = SC.View.extend(SC.ContentDisplay, {
displayProperties: ['p1'],
contentDisplayProperties: ['c1', 'c2'],
p1: null, // If you call this.set('p1', something), the view will rerender
// if content, or c1 or c2 on content change, the view rerenders
contentBinding: SC.Binding.oneWay('App.controller.content')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment